Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pbayer committed Dec 18, 2020
1 parent fd1e260 commit 97b0c74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/src/callbacks.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# `GenServers` Callbacks

```@meta
CurrentModule = GenServers
```

The callback functions are part of an implementation module and are called by the :genserver actor on startup or on cast and call requests:
# `GenServers` Callbacks

The callback functions are part of an implementation module and are called by the `:genserver` actor on startup or on cast and call requests:

```@docs
init
Expand Down
6 changes: 3 additions & 3 deletions src/callbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Its return value is saved in the `:genserver` actor's
state variable and then served to subsequent `call` and
`cast` callbacks.
"""
init
function init end

"""
oncast(default..., msg...)
Expand All @@ -24,7 +24,7 @@ state variable with `msg...` message arguments from a
`cast` request. This can be used to modify the
`default...` state variable(s).
"""
oncast
function oncast end

"""
oncall(default..., msg...)
Expand All @@ -35,4 +35,4 @@ state variable with `msg...` message arguments from a
`default...` state variable(s). Its return value is
sent back to the caller.
"""
oncall
function oncall end

0 comments on commit 97b0c74

Please sign in to comment.