Prelude API
Guides
Skill
GitHub
Preparing search index...
@prelude/actor
Receive
Type Alias Receive<M, S, R>
Receive
:
(
message
:
M
,
state
:
S
,
context
:
Context
<
M
,
S
>
)
=>
R
|
Promise
<
R
>
Message handler; the returned value is the reply for
Ref.ask
.
Type Parameters
M
S
R
=
void
Type Declaration
(
message
:
M
,
state
:
S
,
context
:
Context
<
M
,
S
>
)
:
R
|
Promise
<
R
>
Parameters
message
:
M
state
:
S
context
:
Context
<
M
,
S
>
Returns
R
|
Promise
<
R
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Guides
Skill
GitHub
Prelude API
Loading...
Message handler; the returned value is the reply for Ref.ask.