Media / foldkit-media/server
Admission
class · packages/media/src/server/admission.ts:17
class Admission extends Context.Service<
Admission,
{
readonly admit: (client: string) => Effect.Effect<void, RateLimited>
}
>()('foldkit-media/Admission') {}Whether a client may have a variant made now. Asked only on a miss, after the store and before the original is read: a variant already made costs a read, and only making one costs work. Optional: without it, every miss is admitted.
In the guides
- The serverMedia / foldkit-media