Create a new AsyncPipeWriter managed by a UniquePtr.
Declared in <folly/io/async/AsyncPipe.h>
static
UniquePtr
newWriter(
folly::EventBase* eventBase,
NetworkSocket pipeFd);
A UniquePtr owning the new writer.
| Name | Description |
|---|---|
| eventBase | The EventBase used to drive the writer. |
| pipeFd | The pipe file descriptor to write to. |