Remove onRetract macro

This commit is contained in:
Emery Hemingway 2022-02-28 14:22:43 -06:00
parent ef1d0cc3fa
commit d18508371f
2 changed files with 1 additions and 6 deletions

View File

@ -36,15 +36,10 @@ proc wrapPublishHandler(handler: NimNode): NimNode =
turnSym = ident"turn"
handleSym = ident"handle"
handlerSym = genSym(nskProc, "publish")
onRetractIdent = ident"onRetract"
quote do:
proc `handlerSym`(entity: Entity; `turnSym`: var Turn; bindings: Assertion; `handleSym`: Handle) =
`varSectionOuter`
if fromPreserve(`valuesSym`, bindings):
template `onRetractIdent`(retractBody: untyped): untyped {.used.} =
proc callback(e: Entity; turn: var Turn; h: Handle) =
retractBody
entity.retractImpl = callback # TODO: fine to clobber previous callback?
`publishBody`
proc wrapMessageHandler(handler: NimNode): NimNode =

View File

@ -1,6 +1,6 @@
# Package
version = "1.1.0"
version = "1.2.0"
author = "Emery Hemingway"
description = "Syndicated actors for conversational concurrency"
license = "Unlicense"