diff --git a/actor.ts b/actor.ts index 71d3abe..a9c2812 100644 --- a/actor.ts +++ b/actor.ts @@ -1,10 +1,9 @@ import { IdentitySet, Value } from 'preserves'; export type Assertion = Value; - export type Handle = number; - export type ExitReason = null | { ok: true } | { ok: false, err: Error }; +export type LocalAction = (t: Turn) => void; export const assert = Symbol('assert'); export const retract = Symbol('retract'); @@ -44,7 +43,7 @@ export class Ref implements Entity { } } -export type OutboundMap = Map; +type OutboundMap = Map; export class Actor { readonly outbound: OutboundMap; @@ -75,8 +74,6 @@ export class Actor { let nextHandle = 0; -type LocalAction = (t: Turn) => void; - export class Turn { readonly actor: Actor; readonly queues: Map = new Map();