SerialQueueRunner

Synopsis

Declared in <folly/coro/SerialQueueRunner.h>

class SerialQueueRunner;

Description

Runs coroutine work items submitted via add() in sequence, i.e. with no overlapping.

Different from scheduling via SequencedExecutor, which runs the parts of the work items between resume‐ and suspend‐points in sequence, but which overlaps work items.

Member Functions

Name

Description

add

Submits a work item to be run in sequence.

done

Signals that no more work items will be added.

run

Runs the enqueued work items in sequence.

Created with MrDocs