C# Class AccidentalFish.ApplicationSupport.Core.Threading.AsyncPump

Provides a pump that supports running asynchronous methods on the current thread as outlined in the MSDN article here https://blogs.msdn.microsoft.com/pfxteam/2012/01/20/await-synchronizationcontext-and-console-apps/ (source from that article)
Show file Open project: JamesRandall/AccidentalFish.ApplicationSupport

Public Methods

Method Description
Run ( Func func ) : void

Runs the specified asynchronous function.

Method Details

Run() public static method

Runs the specified asynchronous function.
public static Run ( Func func ) : void
func Func The asynchronous function to execute.
return void