sleep

package
v0.0.0-...-8f21e7d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Until

func Until(ch <-chan struct{}, d time.Duration) bool

Until sleeps for the given duration, or until the channel is closed. Returns true if the sleep completes the full duration

func UntilContext

func UntilContext(ctx context.Context, d time.Duration) bool

UntilContext sleeps for the given duration, or until the context is complete. Returns true if the sleep completes the full duration

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL