YarnTask.Delay(TimeSpan,CancellationToken)

Method in YarnTask

Summary

Creates a YarnTask that delays for the time indicated by timeSpan , and then returns.

public static partial YarnTask Delay(TimeSpan timeSpan, CancellationToken token = default);

Parameters

NameDescription
TimeSpan timeSpanThe amount of time to wait.
CancellationToken tokenA token that can be used to cancel the task.

Returns

A new YarnTask .