Cosmetic
This commit is contained in:
parent
5669154e96
commit
ec5146a8a7
7
actor.ts
7
actor.ts
|
@ -1,10 +1,9 @@
|
|||
import { IdentitySet, Value } from 'preserves';
|
||||
|
||||
export type Assertion = Value<Ref>;
|
||||
|
||||
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<Handle, Ref>;
|
||||
type OutboundMap = Map<Handle, Ref>;
|
||||
|
||||
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<Actor, LocalAction[]> = new Map();
|
||||
|
|
Loading…
Reference in New Issue