Table of contents
Ticket (interface)
Signature
export interface Ticket<A> {
readonly acquire: Wave<never, A>
readonly cleanup: Wave<never, void>
}
makeTicket (function)
Signature
export function makeTicket<A>(acquire: Wave<never, A>, cleanup: Wave<never, void>): Ticket<A> { ... }
ticketExit (function)
Signature
export function ticketExit<A>(ticket: Ticket<A>, exit: Exit<never, A>): Wave<never, void> { ... }
ticketUse (function)
Signature
export function ticketUse<A>(ticket: Ticket<A>): Wave<never, A> { ... }