pause

package
v1.19.33-clash.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: GPL-3.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	EventDevicePaused = singpause.EventDevicePaused
	EventDeviceWake   = singpause.EventDeviceWake
	EventNetworkPause = singpause.EventNetworkPause
	EventNetworkWake  = singpause.EventNetworkWake
)

Variables

This section is empty.

Functions

func DevicePause

func DevicePause()

func DeviceWake

func DeviceWake()

func IsDevicePaused

func IsDevicePaused() bool

func IsNetworkPaused

func IsNetworkPaused() bool

func NetworkPause

func NetworkPause()

func NetworkWake

func NetworkWake()

func Outstanding

func Outstanding() int64

func RegisterCallback

func RegisterCallback(callback Callback) func()

func RegisterTicker

func RegisterTicker(ticker *time.Ticker, duration time.Duration, resume func()) func()

func RegisterTickerResumingOnDeviceWake

func RegisterTickerResumingOnDeviceWake(ticker *time.Ticker, next func() time.Duration, resume func()) (stop func(), tick func(interval time.Duration) bool)

Types

type Callback

type Callback = singpause.Callback

Jump to

Keyboard shortcuts

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