my.actor.msg

Members

Aliases

CSelf
alias CSelf(T = Actor*) = Capture!(T, "self")

Convenient function for capturing the actor itself when spawning.

Capture
alias Capture(T...) = Tuple!T
Undocumented in source.
delay
alias delay = timeout

Code looks better if it says delay when using delayedSend.

Enums

isActor
eponymoustemplate isActor(T)
Undocumented in source.
isAddress
eponymoustemplate isAddress(T)
Undocumented in source.
isCapture
eponymoustemplate isCapture(T)
Undocumented in source.
isDynamicAddress
eponymoustemplate isDynamicAddress(T)
Undocumented in source.
isFirstParamCtx
eponymoustemplate isFirstParamCtx(Fn, CtxT)
Undocumented in source.

Functions

capture
Capture!T capture(T args)
Undocumented in source. Be warned that the author may not have intended to support it.
capture
auto capture(RequestSendThen r, Captures captures)
Undocumented in source. Be warned that the author may not have intended to support it.
capture
auto capture(TR r, Captures captures)
Undocumented in source. Be warned that the author may not have intended to support it.
delayedSend
void delayedSend(AddressT sendTo, SysTime delayTo, Args args)

Trigger the message in the future.

delayedSend
void delayedSend(T sendTo, SysTime delayTo, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
demonitor
void demonitor(AddressT0 self, AddressT1 sendTo)

Remove self as a monitor of the actor using sendTo.

infTimeout
SysTime infTimeout()
Undocumented in source. Be warned that the author may not have intended to support it.
linkTo
void linkTo(AddressT0 self, AddressT1 sendTo)

Link the lifetime of self to the actor using sendTo.

monitor
void monitor(AddressT0 self, AddressT1 sendTo)

Actor self will receive a DownMsg when sendTo shutdown.

request
RequestSend request(ActorT self, WeakAddress requestTo, SysTime timeout)
Undocumented in source. Be warned that the author may not have intended to support it.
request
TypedRequestSend!TAddress request(TActor self, TAddress sendTo, SysTime timeout)
Undocumented in source. Be warned that the author may not have intended to support it.
send
void send(AddressT sendTo, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
send
RequestSendThen send(RequestSend r, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
send
void send(T sendTo, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
send
auto send(TR tr, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
sendExit
void sendExit(AddressT sendTo, ExitReason reason)
Undocumented in source. Be warned that the author may not have intended to support it.
sendSystemMsg
void sendSystemMsg(AddressT sendTo, T msg)
Undocumented in source. Be warned that the author may not have intended to support it.
sendSystemMsgIfEmpty
void sendSystemMsgIfEmpty(AddressT sendTo, T msg)
Undocumented in source. Be warned that the author may not have intended to support it.
then
void then(RequestSendThen r, T handler, ErrorHandler onError)
Undocumented in source. Be warned that the author may not have intended to support it.
then
void then(TR tr, T handler, ErrorHandler onError)
Undocumented in source. Be warned that the author may not have intended to support it.
thenUnsafe
void thenUnsafe(RequestSendThen r, T handler, void* ctx, ErrorHandler onError)
Undocumented in source. Be warned that the author may not have intended to support it.
timeout
SysTime timeout(Duration d)
Undocumented in source. Be warned that the author may not have intended to support it.
unlinkTo
void unlinkTo(AddressT0 self, AddressT1 sendTo)

Remove the link between self and the actor using sendTo.

Imports

Duration (from std.datetime)
public import std.datetime : SysTime, Duration, dur;
Undocumented in source.
SysTime (from std.datetime)
public import std.datetime : SysTime, Duration, dur;
Undocumented in source.
dur (from std.datetime)
public import std.datetime : SysTime, Duration, dur;
Undocumented in source.

Structs

RequestSend
struct RequestSend
Undocumented in source.
RequestSendThen
struct RequestSendThen
Undocumented in source.

Meta

Authors

Joakim Brännström (joakim.brannstrom@gmx.com)