ContinueAsynchronously (Daemon subroutine): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{Template:Daemon:ContinueAsynchronously subtitle}}
{{Template:Daemon:ContinueAsynchronously subtitle}}


This method tells a daemon that did a <var>[[ReturnToMaster (Daemon subroutine)|ReturnToMaster]]</var> <var>Daemon</var> class call to continue processing at the point of the call. Unlike the <var>[[Continue (Daemon function)|Continue]]</var> method, <var>ContinueAsynchronously</var> returns immediately, thus allowing the thread that issued <var>ContinueAsynchronously</var> to run in parallel with the daemon thread.
This method tells a daemon that issued a <var>Daemon</var> class <var>[[ReturnToMaster (Daemon subroutine)|ReturnToMaster]]</var> call to continue processing at the point of the call. Unlike the <var>[[Continue (Daemon function)|Continue]]</var> method, <var>ContinueAsynchronously</var> returns immediately, thus allowing the thread that issued <var>ContinueAsynchronously</var> to run in parallel with the daemon thread.


==Syntax==
==Syntax==
Line 23: Line 23:
<dl>
<dl>
<dt><var>[[IncorrectDaemonState class|IncorrectDaemonState]]</var>  
<dt><var>[[IncorrectDaemonState class|IncorrectDaemonState]]</var>  
<dd>If the daemon thread is not in not in a <var>ReturnToMaster</var> wait when <var>ContinueAsynchronously</var> is issued,
<dd>If the daemon thread is not in a <var>ReturnToMaster</var> wait when <var>ContinueAsynchronously</var> is issued,
an <var>IncorrectDaemonState</var> exception is thrown. This exception will only be thrown in <var class="product">Sirius Mods</var> version 8.1 and later.
an <var>IncorrectDaemonState</var> exception is thrown. This exception will only be thrown in <var class="product">Sirius Mods</var> version 8.1 and later.
</dl>
</dl>

Revision as of 19:20, 30 May 2012

Continue processing asynchronously in daemon (Daemon class)

[Introduced in Sirius Mods 8.1]


This method tells a daemon that issued a Daemon class ReturnToMaster call to continue processing at the point of the call. Unlike the Continue method, ContinueAsynchronously returns immediately, thus allowing the thread that issued ContinueAsynchronously to run in parallel with the daemon thread.

Syntax

daemon:ContinueAsynchronously[( [Input= object])] Throws DaemonLost, IncorrectDaemonState

Syntax terms

daemon A previously defined Daemon object.
inputObj This optional, name allowed, argument is either:
  • An object passed to the daemon thread. This object must be deep copyable, as described in: "Copying objects".
  • A Boolean value. If a Null object

Exceptions

This subroutine can throw the following exceptions:

IncorrectDaemonState
If the daemon thread is not in a ReturnToMaster wait when ContinueAsynchronously is issued, an IncorrectDaemonState exception is thrown. This exception will only be thrown in Sirius Mods version 8.1 and later.

Usage notes

Examples

See also