Utilities

Frends.Utilities.Sleep / 1.0.0

Summary

Waits for a given duration, and cancels cleanly if the Process is stopped rather than blocking until the delay expires.

Typical use — spacing out polling attempts, and backing off before a retry against a rate-limited service

Details

Frends version
5.5 and newer
Agent
Crossplatform
Target framework
net6.0

Input parameters.

Name Type Default Example Description
Milliseconds Int32 0

Milliseconds being waited.

Seconds Int32 10

Seconds being waited.

Minutes Int32 0

Minutes being waited

Hours Int32 0

Hours being waited

An unhandled error has occurred. Reload 🗙