Use runActor proc

This commit is contained in:
Emery Hemingway 2023-05-06 20:28:10 +01:00
parent 76d4d77c24
commit 0f9f622e37
3 changed files with 4 additions and 5 deletions

View File

@ -1,6 +1,6 @@
# Package
version = "20230505"
version = "20230506"
author = "Emery Hemingway"
description = "Syndicate actor for publishing Linux ACPI events"
license = "Unlicense"

View File

@ -1,2 +1,3 @@
include_rules
: acpi_actor.nim | $(SYNDICATE_PROTOCOL) |> !nim_bin |>
: acpi_actor.nim | $(SYNDICATE_PROTOCOL) |> !nim_bin |> {bin}
: {bin} |> !assert_built |>

View File

@ -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()