synchronizable events

This commit is contained in:
2026-04-20 16:25:16 +02:00
parent f8d7b98c6b
commit 7b65a11466

View File

@@ -26,6 +26,7 @@ Defines a logger with topic @racket['id] and creates:
@item{@racket[warn-id]} @item{@racket[warn-id]}
@item{@racket[err-id]} @item{@racket[err-id]}
@item{@racket[fatal-id]} @item{@racket[fatal-id]}
@item{@racket[sync-id]}
] ]
Note. If name is given, id @racket[dbg-prefix], etc. will be generated instead of @racket[dbg-id], etc. Note. If name is given, id @racket[dbg-prefix], etc. will be generated instead of @racket[dbg-id], etc.
@@ -150,5 +151,7 @@ creates:
(err-my-module [msg string?] [arg any/c] ...) void?]{Error log.} (err-my-module [msg string?] [arg any/c] ...) void?]{Error log.}
@defproc[#:link-target? #f @defproc[#:link-target? #f
(fatal-my-module [msg string?] [arg any/c] ...) void?]{Fatal log.} (fatal-my-module [msg string?] [arg any/c] ...) void?]{Fatal log.}
@defproc[#:link-target? #f
(sync-my-module) void?]{Puts a sync message to the logger and waits for the receiver until it logs this synchronization event.}
All use @racket[format] and emit asynchronously. All, except for @racket[sync-my-module] use @racket[format] and emit asynchronously.