A TimeoutManager that schedules timeouts on a folly::Executor.
Synopsis
Declared in <folly/fibers/ExecutorLoopController.h>
class ExecutorTimeoutManager
: public TimeoutManager
Base Classes
Name |
Description |
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 |
Callback type invoked when a timeout fires. |
|
Millisecond‐resolution timeout duration. |
|
Microsecond‐resolution timeout duration. |
Enums
Name |
Description |
Distinguishes internal timeouts from normal ones. |
Member Functions
Name |
Description |
|
Constructors |
Assignment operators |
|
|
No‐op; timeouts are attached implicitly when scheduled. |
|
Not supported; always throws. |
|
Not supported; always throws. |
|
Not supported; always throws. |
|
Not supported; always throws. |
Runs the given Cob at some time after the specified number of milliseconds. (No guarantees exactly when.) |
|
|
Schedules a timeout by sleeping on the executor and firing the callback. |
|
Schedules AsyncTimeout to fire after |
Attempts to run the given Cob after the specified delay. |
Protected Member Functions
Name |
Description |
Cancels and clears all callback timeouts registered via runAfterDelay. |
Created with MrDocs