COROIO: NNet::NActors::TAsk< T > Class Template Reference
COROIO
Loading...
Searching...
No Matches
NNet::NActors::TAsk< T > Class Template Reference
Inheritance diagram for NNet::NActors::TAsk< T >:
NNet::NActors::IActor

Public Member Functions

 TAsk (const std::shared_ptr< TAskState< T > > &state)
void Receive (TMessageId messageId, TBlob blob, TActorContext::TPtr ctx) override
 Process an incoming message.

Additional Inherited Members

Public Types inherited from NNet::NActors::IActor
using TPtr = std::unique_ptr<IActor>

Member Function Documentation

◆ Receive()

template<typename T>
void NNet::NActors::TAsk< T >::Receive ( TMessageId messageId,
TBlob blob,
TActorContext::TPtr ctx )
overridevirtual

Process an incoming message.

Parameters
messageIdType identifier of the message
blobSerialized message data
ctxActor context for sending responses and accessing actor system

This method should process the message quickly and not perform blocking operations. For async operations, use ICoroActor instead.

Implements NNet::NActors::IActor.


The documentation for this class was generated from the following file: