A TimeoutManager that schedules timeouts on a folly::Executor.

Synopsis

Declared in <folly/fibers/ExecutorLoopController.h>

class ExecutorTimeoutManager
    : public TimeoutManager

Base Classes

Name

Description

TimeoutManager

Base interface to be implemented by all classes expecting to manage timeouts. AsyncTimeout will use implementations of this interface to schedule/cancel timeouts.

Type Aliases

Name

Description

Func

Callback type invoked when a timeout fires.

timeout_type

Millisecond‐resolution timeout duration.

timeout_type_high_res

Microsecond‐resolution timeout duration.

Enums

Name

Description

InternalEnum

Distinguishes internal timeouts from normal ones.

Member Functions

Name

Description

ExecutorTimeoutManager [constructor]

Constructors

operator=

Assignment operators

attachTimeoutManager [virtual]

No‐op; timeouts are attached implicitly when scheduled.

bumpHandlingTime [virtual]

Not supported; always throws.

cancelTimeout [virtual]

Not supported; always throws.

detachTimeoutManager [virtual]

Not supported; always throws.

isInTimeoutManagerThread [virtual]

Not supported; always throws.

runAfterDelay

Runs the given Cob at some time after the specified number of milliseconds. (No guarantees exactly when.)

scheduleTimeout [virtual]

Schedules a timeout by sleeping on the executor and firing the callback.

scheduleTimeoutHighRes [virtual]

Schedules AsyncTimeout to fire after timeout microseconds

tryRunAfterDelay

Attempts to run the given Cob after the specified delay.

Protected Member Functions

Name

Description

clearCobTimeouts

Cancels and clears all callback timeouts registered via runAfterDelay.

Created with MrDocs