Struct Future<T>
Provides a higher-level wrapper around CallSlot returned value by Glue. All property accessors evaluate synchronously on the calling thread. This struct should not be used with One-Way calls or calls that return void
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: NFX.Glue
Assembly: NFX.dll
Syntax
public struct Future<T>
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
Future(CallSlot)
Declaration
public Future(CallSlot call)
Parameters
| Type | Name | Description |
|---|---|---|
| CallSlot | call |
Fields
Call
Returns the underlying CallSlot object
Declaration
public readonly CallSlot Call
Field Value
| Type | Description |
|---|---|
| CallSlot |
Properties
Available
Non-blocking call that returns true if result arrived, false otherwise
Declaration
public bool Available { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Value
Blocking call that waits for return value. Use non-blocking Available to see if result arrived
Declaration
public T Value { get; }
Property Value
| Type | Description |
|---|---|
| T |