folly::AsyncPipeWriter::newWriter

Create a new AsyncPipeWriter managed by a UniquePtr.

Synopsis

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

static
UniquePtr
newWriter(
    folly::EventBase* eventBase,
    NetworkSocket pipeFd);

Return Value

A UniquePtr owning the new writer.

Parameters

NameDescription
eventBaseThe EventBase used to drive the writer.
pipeFdThe pipe file descriptor to write to.