actor-system/dataspace

This commit is contained in:
Tony Garnock-Jones 2021-06-03 22:40:51 +02:00
parent 490f2d82db
commit 7ce9166a5d
2 changed files with 14 additions and 6 deletions

View File

@ -4,7 +4,8 @@
(all-from-out "schemas/gen/dataspace-patterns.rkt")
(all-from-out "schemas/gen/dataspace-patterns.meta.rkt")
dataspace)
dataspace
actor-system/dataspace)
(require racket/match)
@ -50,3 +51,12 @@
(log-syndicate/dataspace-debug "~v ! ~v" ds-e message)
(send-assertion! this-turn skeleton message))))
ds-e)
(define-syntax actor-system/dataspace
(syntax-rules ()
[(_ (ds) expr ...)
(actor-system
#:name 'dataspace
(facet-prevent-inert-check! this-facet)
(define ds (ref (dataspace)))
expr ...)]))

View File

@ -44,8 +44,6 @@
(module+ main
(time
(actor-system
(define disarm (facet-prevent-inert-check! this-facet))
(define ds (ref (dataspace)))
(box this-turn ds 500000 100000)
(client this-turn ds))))
(actor-system/dataspace (ds)
(box this-turn ds 500000 100000)
(client this-turn ds))))