Znav next slice2matlab Command-Line Options prev MATLAB Mapping for Classes
Asynchronous Method Invocation (AMI) is the term used to describe the client-side support for the asynchronous programming model. AMI supports both oneway and twoway requests, but unlike their synchronous counterparts, AMI requests never block the application. When a client issues an AMI request, the Ice run time hands the message off to the local transport buffer or, if the buffer is currently full, queues the request for later delivery. The application can then continue its activities and poll or wait for completion of the invocation, or receive a callback when the invocation completes.
...
Code Block | ||||
---|---|---|---|---|
| ||||
classdef Future < ...
methods
function ok = wait(obj, state, timeout)
function varargout = fetchOutputs(obj)
function cancel(obj)
end
properties(SetAccess=private) % Read only properties
ID
NumOutputArguments
Operation
Read
State
end
end |
...
wait()
This method blocks until the invocation completes and returnstrue
if it completed successfully orfalse
if it failed.
wait(state)
This method blocks until the desired state is reached (see the description of theState
property below). For example, callingfuture.wait('finished')
is equivalent to callingfuture.wait()
. The method returnstrue
if the desired state was reached and no exception has occurred, orfalse
otherwise.
wait(state, timeout)
This method blocks for a maximum oftimeout
seconds until the desired state is reached, wheretimeout
is a double value. The method returnstrue
if the desired state was reached and no exception has occurred, orfalse
otherwise.
fetchOutputs()
This method blocks until the invocation completes. If it completed successfully,fetchOutputs
returns the results (if any). If the invocation failed,fetchOutputs
raises the exception. This method can only be invoked once.
...
Znav next slice2matlab Command-Line Options prev MATLAB Mapping for Classes