folly::AsyncIoUringSocketFactory::asyncDetachFd

Detaches the file descriptor from an io_uring transport, if it is one.

Synopsis

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

static
bool
asyncDetachFd(
    AsyncTransport& transport,
    AsyncDetachFdCallback* callback);

Return Value

true if the transport was an io_uring socket and detach began.

Parameters

NameDescription
transportThe transport to detach from.
callbackThe callback notified when the descriptor is detached.