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)

Parameters

Name
Description

TimeSpan timeSpan

The amount of time to wait.

CancellationToken token

A token that can be used to cancel the task.

Returns

A new YarnTask .

Last updated

Yarn Spinnerยฎ and Secret Labยฎ are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.