SlotPool.slotFor

Slot * slotFor(Token token) @safe nothrow @nogc

Look up a slot by token.

Validates the generation counter and checks that the slot is still in use (kind is not NONE).

Parameters

tokenWatcher token previously returned by allocate.

Returns

Pointer to the matching slot, or null if the token is stale or

out of range.