Public Member Functions | Properties

GridGain.Client.Util.GridClientFinishedFuture< T > Class Template Reference

Represents a future that already have a result and will never wait. More...

Inherits GridGain::Client::IGridClientFuture.

List of all members.

Public Member Functions

 GridClientFinishedFuture (Func< T > get)
 Creates succeeded future with given result.
 GridClientFinishedFuture (T result)
 Creates succeeded future with given result.
void WaitDone ()
 Synchronously waits for task completion.
bool WaitDone (TimeSpan timeout)
 Synchronously waits for task completion.

Properties

T Result [get]
 Synchronously waits for task completion and returns execution result.
bool IsDone [get]
 Future is done flag.

Detailed Description

template<T>
class GridGain::Client::Util::GridClientFinishedFuture-g< T >


Member Function Documentation

template<T >
GridGain.Client.Util.GridClientFinishedFuture< T >.GridClientFinishedFuture ( Func< T >  get  ) 
Parameters:
get Future result delegate.
template<T >
GridGain.Client.Util.GridClientFinishedFuture< T >.GridClientFinishedFuture ( T  result  ) 
Parameters:
result Future result.
template<T >
void GridGain.Client.Util.GridClientFinishedFuture< T >.WaitDone (  ) 
Exceptions:
GridClientException If task execution fails with exception.

Implements GridGain.Client.IGridClientFuture.

template<T >
bool GridGain.Client.Util.GridClientFinishedFuture< T >.WaitDone ( TimeSpan  timeout  ) 
Parameters:
timeout Timeout interval to wait future completes.
Returns:
true if this future completes, false - otherwize.
Exceptions:
GridClientException If task execution fails with exception.

Property Documentation

template<T >
bool GridGain.Client.Util.GridClientFinishedFuture< T >.IsDone [get]
template<T >
T GridGain.Client.Util.GridClientFinishedFuture< T >.Result [get]
Exceptions:
GridClientException If task execution fails with exception.