10 lines
297 B
Racket
10 lines
297 B
Racket
#lang racket/base
|
|
;; Reflective protocols
|
|
|
|
(provide (struct-out terminated))
|
|
|
|
;; (terminated Any (Option Any))
|
|
;; The `actor-name` is the name of the terminated actor.
|
|
;; The `reason` is either `#f` or a termination reason, usually an `exn?`.
|
|
(struct terminated (actor-name reason) #:transparent)
|