public ConfiguredMainThreadAwaitable(JoinableTaskFactory.MainThreadAwaitable mainThreadAwaitable, bool alwaysYield)
 {
     _mainThreadAwaitable = mainThreadAwaitable;
     _alwaysYield         = alwaysYield;
 }
Beispiel #2
0
 internal ControlMainThreadAwaitable(JoinableTaskFactory.MainThreadAwaitable awaitable, IDisposable disposable, CancellationToken cancellationToken)
 {
     _awaitable         = awaitable;
     _disposable        = disposable;
     _cancellationToken = cancellationToken;
 }
Beispiel #3
0
 internal ControlMainThreadAwaitable(JoinableTaskFactory.MainThreadAwaitable awaitable, IDisposable?disposable)
 {
     _awaitable  = awaitable;
     _disposable = disposable;
 }
Beispiel #4
0
 public MainThreadAwaitable(JoinableTaskFactory.MainThreadAwaitable awaitable)
 {
     this.awaitable = awaitable;
 }