Attempts to run the given Cob after the specified delay.
Declared in <folly/io/async/TimeoutManager.h>
bool
tryRunAfterDelay(
Func cob,
uint32_t milliseconds,
InternalEnum internal = InternalEnum::NORMAL);
true iff the cob was successfully registered.
| Name | Description |
|---|---|
| cob | The callback to run after the delay. |
| milliseconds | The delay before the callback runs, in milliseconds. |
| internal | Whether the timeout is treated as an internal event. |
runAfterDelay for more details