template <typename T>
class AsyncSender
Defined at line 48 of file ../../src/sys/fuzzing/common/async-deque.h
Sending half of an async deque.
This class is thread-safe.
Public Methods
void AsyncSender<T> ()
Defined at line 50 of file ../../src/sys/fuzzing/common/async-deque.h
void AsyncSender<T> (std::shared_ptr<AsyncDeque<T>> deque)
Since `AsyncDeque
<T
>` cannot be directly constructed, this constructor cannot be used by
callers. Instead, create senders with receivers using the constructor for `AsyncReceiver
<T
>`.
Defined at line 54 of file ../../src/sys/fuzzing/common/async-deque.h
void AsyncSender<T> (AsyncSender<T> && other)
Defined at line 60 of file ../../src/sys/fuzzing/common/async-deque.h
AsyncSender<T> & operator= (AsyncSender<T> && other)
Defined at line 61 of file ../../src/sys/fuzzing/common/async-deque.h
void ~AsyncSender<T> ()
Defined at line 67 of file ../../src/sys/fuzzing/common/async-deque.h
zx_status_t Send (T item)
Takes ownership of an `item` and transfers it to a caller of `AsyncReceiver
<T
>::Receive` on the
receiver with the same underlying deque. If there are outstanding callers, the item is
delivered to the earliest one, otherwise it will be delivered to the next caller. Returns
`ZX_ERR_PEER_CLOSED` if the underlying deque is already closed.
Defined at line 77 of file ../../src/sys/fuzzing/common/async-deque.h
AsyncSender<T> Clone ()
Returns a new sender that sends items to the same receiver as this object.
Defined at line 82 of file ../../src/sys/fuzzing/common/async-deque.h