asend Function
An asynchronous send operation, which schedules a task to propagate the data to the target block.
template <
class _Type
>
bool asend(
_Inout_ ITarget<_Type> * _Trg,
const _Type& _Data
);
template <
class _Type
>
bool asend(
ITarget<_Type> &_Trg,
const _Type &_Data
);
Parameters
_Type
The type of the data to be sent._Trg
A pointer or reference to the target to which data is sent._Data
A reference to the data to be sent.
Return Value
true if the message was accepted before the method returned, false otherwise.
Remarks
For more information, see Message Passing Functions.
Requirements
Header: agents.h
Namespace: concurrency