@@ -38,8 +38,7 @@ public interface IEventExecutor
3838 /// Returns <c>true</c> if all tasks have completed following shut down.
3939 /// </summary>
4040 /// <remarks>
41- /// Note that <see cref="IsTerminated" /> is never <c>true</c> unless either <see cref="ShutdownGracefullyAsync()" />
42- /// or <see cref="ShutdownNow()" /> was called first.
41+ /// Note that <see cref="IsTerminated" /> is never <c>true</c> unless <see cref="ShutdownGracefullyAsync()" /> was called first.
4342 /// </remarks>
4443 bool IsTerminated { get ; }
4544
@@ -49,33 +48,6 @@ public interface IEventExecutor
4948 /// </summary>
5049 bool IsInEventLoop ( Thread thread ) ;
5150
52- /// <summary>
53- /// Returns an <see cref="IEventExecutor" /> that is not an <see cref="IWrappedEventExecutor" />.
54- /// </summary>
55- /// <remarks>
56- /// <list type="bullet">
57- /// <item>
58- /// <description>
59- /// A <see cref="IWrappedEventExecutor" /> implementing this method must return the underlying
60- /// <see cref="IEventExecutor" /> while making sure that it's not a <see cref="IWrappedEventExecutor" />
61- /// (e.g. by multiple calls to <see cref="Unwrap()" />).
62- /// </description>
63- /// </item>
64- /// <item>
65- /// <description>
66- /// An <see cref="IEventExecutor" /> that is not a <see cref="IWrappedEventExecutor" /> must return a
67- /// reference to itself.
68- /// </description>
69- /// </item>
70- /// <item>
71- /// <description>
72- /// This method must not return null.
73- /// </description>
74- /// </item>
75- /// </list>
76- /// </remarks>
77- IEventExecutor Unwrap ( ) ;
78-
7951 /// <summary>
8052 /// Executes the given task.
8153 /// </summary>
@@ -108,6 +80,14 @@ public interface IEventExecutor
10880 /// </remarks>
10981 void Execute ( Action < object , object > action , object context , object state ) ;
11082
83+ /// <summary>
84+ /// Creates and executes a one-shot action that becomes enabled after the given delay.
85+ /// </summary>
86+ /// <param name="action">the task to execute</param>
87+ /// <param name="delay">the time from now to delay execution</param>
88+ /// <returns>an <see cref="IScheduledTask" /> representing pending completion of the task.</returns>
89+ IScheduledTask Schedule ( IRunnable action , TimeSpan delay ) ;
90+
11191 /// <summary>
11292 /// Schedules the given action for execution after the specified delay would pass.
11393 /// </summary>
0 commit comments