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

Synopsis

Declared in <folly/io/async/TimeoutManager.h>

void
runAfterDelay(
    Func cob,
    uint32_t milliseconds,
    InternalEnum internal = InternalEnum::NORMAL);

Description

Throws a std::system_error if an error occurs.

Parameters

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.

Created with MrDocs