Skip to content

Commit

Permalink
Fixed: #85
Browse files Browse the repository at this point in the history
  • Loading branch information
mdbergmann committed Jul 22, 2024
1 parent 2985bc4 commit 0c2d9b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/actor-context-api.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ Using this function there is no need to use both `act:make-actor`.
`context` is either an `asys:actor-system`, an `ac:actor-context`, or an `act:actor` (any type of actor).
The new actor is created in the given context.
- `:receive` is required and must be a 3-arity lambda with arguments: 1. the actor, 2. the message, 3. the state
Usually expressed as `(lambda (self msg state))`.
- `:receive` is required and must be a 1-arity function where the arguments is received message object.
The function can be just a lambda like `(lambda (msg) ...)`.
- `:init`: is an optional initialization function with one argument: the actor instance (self).
This represents a 'start' hook that is called after the actor was fully initialized.
- `:destroy`: is an optional destroy function also with the actor instance as argument.
Expand Down

0 comments on commit 0c2d9b7

Please sign in to comment.