oops - absent pattern name

This commit is contained in:
Tony Garnock-Jones 2021-12-09 22:14:20 +01:00
parent 4db3f45d67
commit 7a7ad76036
1 changed files with 2 additions and 4 deletions

View File

@ -21,8 +21,7 @@ export function boot(ds: Ref) {
spawn named 'timer/PeriodicTick' {
at ds {
during Observe({
"pattern": :pattern PeriodicTick(\Q.lit($intervalMS)),
"observer": _,
"pattern": :pattern PeriodicTick(\Q.lit($intervalMS))
}) => spawn linked named (preserves`PeriodicTick(${intervalMS})`) {
const thisFacet = Turn.activeFacet;
thisFacet.preventInertCheck();
@ -37,8 +36,7 @@ export function boot(ds: Ref) {
spawn named 'timer/TimeLaterThan' {
at ds {
during Observe({
"pattern": :pattern TimeLaterThan(\Q.lit($deadlineMS)),
"observer": _,
"pattern": :pattern TimeLaterThan(\Q.lit($deadlineMS))
}) => spawn linked named (preserves`TimeLaterThan(${deadlineMS})`) {
const thisFacet = Turn.activeFacet;
thisFacet.preventInertCheck();