ReceivedDescriptors.take

Handle take(size_t index) @trusted nothrow @nogc

Transfer the descriptor at index out of the batch.

After a successful take the caller owns the descriptor and must close or adopt it; the batch no longer closes it.

Parameters

indexSlot index, must be less than length.

Returns

The owned descriptor as a Handle, or Handle.invalid when the

slot is out of range or was already claimed.