linkTo

Link the lifetime of self to the actor using sendTo.

An ExitMsg is sent to self if sendTo is terminated and vice versa.

ExitMsg triggers exitHandler.

@safe
void
linkTo
(
AddressT0
AddressT1
)
(
AddressT0 self
,
AddressT1 sendTo
)
if (
(
isActor!AddressT0 ||
isAddress!AddressT0
)
&&
(
isActor!AddressT1 ||
isAddress!AddressT1
)
)

Meta