nyx Typedoc
    Preparing search index...

    Class DefaultSessionLimitManager<Types>

    Default implementation of SessionLimitManager.

    Type Parameters

    Implements

    Index
    displacements: Map<string, Session<unknown, Types>[]> = ...

    Sessions to displace once the session that displaces them (the key) has started.

    displacing: Set<string> = ...

    IDs of sessions waiting to be displaced, which no longer count towards limits.

    lock: Promise<void> = ...

    Serializes limit checks, so a session can't pass while another one is displacing.

    policies: Map<Constructor<Session<unknown, Types>>, SessionLimit<Types>[]> = ...
    reserved: Map<string, Session<unknown, Types>> = ...

    Sessions that passed their limits and haven't ended yet, counted even before the repository saves them.