From ec5146a8a766b9dd81c94cd3c1de79e76ae9e914 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Tue, 23 Feb 2021 15:41:54 +0100 Subject: [PATCH] Cosmetic --- actor.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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();