semaphore

package
v0.0.5-0...-0379fef Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterLock

func AfterLock(locker sync.Locker, fn func())

AfterLock runs a background goroutine to acquire a lock then run fn in the main thread.

func Async

func Async(fn interface{}, v ...interface{})

func Idle

func Idle(fn interface{}, v ...interface{}) (interface{}, error)

func IdleMust

func IdleMust(fn interface{}, v ...interface{}) interface{}

func IdleNow

func IdleNow(fn interface{}, v ...interface{}) []interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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