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