NanoByte.Common
Public Member Functions | Static Public Member Functions | List of all members
NanoByte.Common.Future< T > Class Template Reference

Combines an EventWaitHandle with a result. More...

Inheritance diagram for NanoByte.Common.Future< T >:

Public Member Functions

void Set (T result)
 Sets the result and signals anyone waiting for it. More...
 
Get ()
 Waits for the result and returns it when it is ready. More...
 
void Dispose ()
 

Static Public Member Functions

static implicit operator Future< T > (T value)
 Creates a future with the result already set. More...
 

Detailed Description

Combines an EventWaitHandle with a result.

Template Parameters
TThe type of the result.

Member Function Documentation

◆ Get()

T NanoByte.Common.Future< T >.Get ( )
inline

Waits for the result and returns it when it is ready.

◆ operator Future< T >()

static implicit NanoByte.Common.Future< T >.operator Future< T > ( value)
inlinestatic

Creates a future with the result already set.

◆ Set()

void NanoByte.Common.Future< T >.Set ( result)
inline

Sets the result and signals anyone waiting for it.


The documentation for this class was generated from the following file: