folly::EventBase::getTestBackend

Creates a backend suitable for tests.

Synopsis

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

static
std::unique_ptr<EventBaseBackendBase>
getTestBackend(int napiId);

Return Value

The test backend.

Parameters

NameDescription
napiIdThe NAPI id used by the test backend.