Akka.Actor.ActorBase.SetReceiveTimeout C# (CSharp) 메소드

SetReceiveTimeout() 보호된 메소드

Defines the inactivity timeout after which the sending of a ReceiveTimeout message is triggered. When specified, the receive function should be able to handle a ReceiveTimeout message.

Please note that the receive timeout might fire and enqueue the ReceiveTimeout message right after another message was enqueued; hence it is not guaranteed that upon reception of the receive timeout there must have been an idle period beforehand as configured via this method.

Once set, the receive timeout stays in effect (i.e. continues firing repeatedly after inactivity periods). Pass in null to switch off this feature.

protected SetReceiveTimeout ( TimeSpan timeout ) : void
timeout TimeSpan The timeout. Pass in null to switch off this feature.
리턴 void
        protected void SetReceiveTimeout(TimeSpan? timeout)
        {
            Context.SetReceiveTimeout(timeout);
        }
    }