Use runActor proc
This commit is contained in:
parent
76d4d77c24
commit
0f9f622e37
|
@ -1,6 +1,6 @@
|
|||
# Package
|
||||
|
||||
version = "20230505"
|
||||
version = "20230506"
|
||||
author = "Emery Hemingway"
|
||||
description = "Syndicate actor for publishing Linux ACPI events"
|
||||
license = "Unlicense"
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
include_rules
|
||||
: acpi_actor.nim | $(SYNDICATE_PROTOCOL) |> !nim_bin |>
|
||||
: acpi_actor.nim | $(SYNDICATE_PROTOCOL) |> !nim_bin |> {bin}
|
||||
: {bin} |> !assert_built |>
|
||||
|
|
|
@ -45,9 +45,7 @@ proc relayEvents(ds: Ref; facet: Facet) =
|
|||
type Args {.preservesDictionary.} = object
|
||||
machine: Ref
|
||||
|
||||
bootDataspace("main") do (root: Ref; turn: var Turn):
|
||||
runActor("main") do (root: Ref; turn: var Turn):
|
||||
connectStdio(root, turn)
|
||||
onPublish(turn, root, ?Args) do (ds: Ref):
|
||||
relayEvents(ds, turn.facet)
|
||||
|
||||
runForever()
|
||||
|
|
Loading…
Reference in New Issue