Polls the stream for the next element, registering a waker if pending.

Synopsis

Declared in <folly/coro/RustAdaptors.h>

Poll
poll(Waker waker);

Return Value

The next element, or none if not yet ready.

Parameters

Name

Description

waker

The callback invoked when the stream may make progress.

Created with MrDocs