addDataspace
This commit is contained in:
parent
68432a204c
commit
be22238ca3
|
@ -30,9 +30,9 @@ import ./syndicate/[actors, dataspaces, durings, patterns]
|
|||
|
||||
from ./syndicate/relays import connectStdio, connectUnix
|
||||
|
||||
export Assertion, Facet, Handle, Ref, Symbol, Turn, TurnAction, bootDataspace,
|
||||
`$`, `?`, connectStdio, connectUnix, drop, facet, grab, message, publish,
|
||||
retract, replace, run, stop, unembed
|
||||
export Assertion, Facet, Handle, Ref, Symbol, Turn, TurnAction, `$`, `?`,
|
||||
bootDataspace, connectStdio, connectUnix, drop, facet, grab, message,
|
||||
newDataspace, publish, retract, replace, run, stop, unembed
|
||||
|
||||
proc `?`*(T: static typedesc): Pattern =
|
||||
## Construct a `Pattern` from type `T`.
|
||||
|
|
|
@ -42,3 +42,6 @@ proc bootDataspace*(name: string; bootProc: BootProc): Actor {.discardable.} =
|
|||
discard turn.facet.preventInertCheck()
|
||||
let ds = newRef(turn, Dataspace(index: initIndex()))
|
||||
bootProc(ds, turn)
|
||||
|
||||
proc newDataspace*(turn: var Turn): Ref =
|
||||
newRef(turn, Dataspace(index: initIndex()))
|
||||
|
|
Loading…
Reference in New Issue