C# Class Ensage.Common.Threading.Await

Await Helpers.
Exibir arquivo Open project: EnsageSharp/Ensage.Common

Public Methods

Method Description
Block ( string key, Func taskFactory ) : void
Delay ( int time, CancellationToken token = default(CancellationToken) ) : Task

Awaits the larger of two or Game.Ping

Method Details

Block() public static method

public static Block ( string key, Func taskFactory ) : void
key string
taskFactory Func
return void

Delay() public static method

Awaits the larger of two or Game.Ping
public static Delay ( int time, CancellationToken token = default(CancellationToken) ) : Task
time int
token System.Threading.CancellationToken
return Task