Use runActor proc
This commit is contained in:
parent
5a9e940a7d
commit
3a39c77f9b
|
@ -1,6 +1,6 @@
|
|||
# Package
|
||||
|
||||
version = "20230502"
|
||||
version = "20230506"
|
||||
author = "Emery Hemingway"
|
||||
description = "Syndicate actor for asserting Fontconfig information"
|
||||
license = "Unlicense"
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
include_rules
|
||||
: foreach ../*.prs |> !preserves_schema_nim |> {schema}
|
||||
: fontconfig_actor.nim | {schema} $(SYNDICATE_PROTOCOL) |> !nim_bin |>
|
||||
: fontconfig_actor.nim | {schema} $(SYNDICATE_PROTOCOL) |> !nim_bin |> {bin}
|
||||
: {bin} |> !assert_built |>
|
||||
|
|
|
@ -166,9 +166,7 @@ proc serve(ds: Ref; turn: var Turn) =
|
|||
PatternDestroy(pat)
|
||||
discard publish(turn, ds, fontAssert)
|
||||
|
||||
bootDataspace("main") do (root: Ref; turn: var Turn):
|
||||
runActor("main") do (root: Ref; turn: var Turn):
|
||||
connectStdio(root, turn)
|
||||
onPublish(turn, root, ?BootArguments) do (ds: Ref):
|
||||
during(turn, root, ?BootArguments) do (ds: Ref):
|
||||
serve(ds, turn)
|
||||
|
||||
runForever()
|
||||
|
|
Loading…
Reference in New Issue