File tree Expand file tree Collapse file tree 4 files changed +41
-2
lines changed
src/AsyncFiberWorks/Procedures Expand file tree Collapse file tree 4 files changed +41
-2
lines changed Original file line number Diff line number Diff line change 1+ using System ;
2+ using System . Threading . Tasks ;
3+
4+ namespace AsyncFiberWorks . Procedures
5+ {
6+ /// <summary>
7+ /// Use "await" to simply wait for the start of a task on a sequential handler list.
8+ /// </summary>
9+ /// <typeparam name="T"></typeparam>
10+ public interface ISequentialHandlerWaiter < T >
11+ {
12+ /// <summary>
13+ /// Wait for handler execution.
14+ /// </summary>
15+ /// <returns></returns>
16+ /// <exception cref="ObjectDisposedException"></exception>
17+ /// <exception cref="OperationCanceledException"></exception>
18+ Task < ProcessedFlagEventArgs < T > > ExecutionStarted ( ) ;
19+ }
20+ }
Original file line number Diff line number Diff line change 1+ using System ;
2+ using System . Threading . Tasks ;
3+
4+ namespace AsyncFiberWorks . Procedures
5+ {
6+ /// <summary>
7+ /// Use "await" to simply wait for the start of a task on a sequential task list.
8+ /// </summary>
9+ public interface ISequentialTaskWaiter
10+ {
11+ /// <summary>
12+ /// Wait for task execution.
13+ /// </summary>
14+ /// <returns></returns>
15+ /// <exception cref="ObjectDisposedException"></exception>
16+ /// <exception cref="OperationCanceledException"></exception>
17+ Task ExecutionStarted ( ) ;
18+ }
19+ }
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ namespace AsyncFiberWorks.Procedures
99 /// Use "await" to simply wait for the start of a task on a sequential handler list.
1010 /// </summary>
1111 /// <typeparam name="T"></typeparam>
12- public class SequentialHandlerWaiter < T > : IDisposable
12+ public class SequentialHandlerWaiter < T > : IDisposable , ISequentialHandlerWaiter < T >
1313 {
1414 private readonly object _lockObj = new object ( ) ;
1515 private bool _executionRequested ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ namespace AsyncFiberWorks.Procedures
88 /// <summary>
99 /// Use "await" to simply wait for the start of a task on a sequential task list.
1010 /// </summary>
11- public class SequentialTaskWaiter : IDisposable
11+ public class SequentialTaskWaiter : IDisposable , ISequentialTaskWaiter
1212 {
1313 private readonly object _lockObj = new object ( ) ;
1414 private bool _executionRequested ;
You can’t perform that action at this time.
0 commit comments