C# Class Helios.Concurrency.PromiseUtil

Utility class for working with TaskCompletionSource
ファイルを表示 Open project: helios-io/helios

Public Methods

Method Description
SafeSetFailure ( TaskCompletionSource promise, Exception cause, ILogger logger ) : void
SafeSetSuccess ( TaskCompletionSource promise, ILogger logger ) : void

Method Details

SafeSetFailure() public static method

public static SafeSetFailure ( TaskCompletionSource promise, Exception cause, ILogger logger ) : void
promise TaskCompletionSource
cause System.Exception
logger ILogger
return void

SafeSetSuccess() public static method

public static SafeSetSuccess ( TaskCompletionSource promise, ILogger logger ) : void
promise TaskCompletionSource
logger ILogger
return void