CompletableFuture.DelayedExecutor Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DelayedExecutor(Int64, TimeUnit) |
Returns a new Executor that submits a task to the default executor after the given delay (or no delay if non-positive). |
DelayedExecutor(Int64, TimeUnit, IExecutor) |
Returns a new Executor that submits a task to the given base executor after the given delay (or no delay if non-positive). |
DelayedExecutor(Int64, TimeUnit)
Returns a new Executor that submits a task to the default executor after the given delay (or no delay if non-positive).
[Android.Runtime.Register("delayedExecutor", "(JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/Executor;", "", ApiSince=31)]
public static Java.Util.Concurrent.IExecutor? DelayedExecutor (long delay, Java.Util.Concurrent.TimeUnit? unit);
[<Android.Runtime.Register("delayedExecutor", "(JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/Executor;", "", ApiSince=31)>]
static member DelayedExecutor : int64 * Java.Util.Concurrent.TimeUnit -> Java.Util.Concurrent.IExecutor
Parameters
- delay
- Int64
how long to delay, in units of unit
- unit
- TimeUnit
a TimeUnit
determining how to interpret the
delay
parameter
Returns
the new delayed executor
- Attributes
Remarks
Returns a new Executor that submits a task to the default executor after the given delay (or no delay if non-positive). Each delay commences upon invocation of the returned executor's execute
method.
Added in 9.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
DelayedExecutor(Int64, TimeUnit, IExecutor)
Returns a new Executor that submits a task to the given base executor after the given delay (or no delay if non-positive).
[Android.Runtime.Register("delayedExecutor", "(JLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/Executor;", "", ApiSince=31)]
public static Java.Util.Concurrent.IExecutor? DelayedExecutor (long delay, Java.Util.Concurrent.TimeUnit? unit, Java.Util.Concurrent.IExecutor? executor);
[<Android.Runtime.Register("delayedExecutor", "(JLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/Executor;", "", ApiSince=31)>]
static member DelayedExecutor : int64 * Java.Util.Concurrent.TimeUnit * Java.Util.Concurrent.IExecutor -> Java.Util.Concurrent.IExecutor
Parameters
- delay
- Int64
how long to delay, in units of unit
- unit
- TimeUnit
a TimeUnit
determining how to interpret the
delay
parameter
- executor
- IExecutor
the base executor
Returns
the new delayed executor
- Attributes
Remarks
Returns a new Executor that submits a task to the given base executor after the given delay (or no delay if non-positive). Each delay commences upon invocation of the returned executor's execute
method.
Added in 9.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.