public ShellOperationAwaiter(EditorShell.Operation operation)
 {
     _operation = operation;
 }
Example #2
0
        private async Task <int> GetOperationTask(EditorShell.Operation operation)
        {
            int code = await operation;

            return(code);
        }
Example #3
0
 public ShellOperationYieldable(EditorShell.Operation operation)
 {
     _operation = operation;
 }
Example #4
0
        private async void KillAfter1Second(EditorShell.Operation operation)
        {
            await Task.Delay(1000);

            operation.Kill();
        }