package
module
Version:
v0.0.0-...-20ff9f8
Opens a new window with list of versions in this module.
Published: Apr 4, 2019
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
At
The simple library that execute func in the future at a predefined time.
Install
go get -u github.com/RyuaNerin/at
Usage
GoDoc - github.com/RyuaNerin/at
job := After(2 * time.Second, func() {
fmt.Println("Hello World!")
})
job.Cancel()
job.Wait(0)
LICENSE
GNU GENERAL PUBLIC LICENSE v3
Documentation
¶
The simple library that execute func in the future at a predefined time.
Execute action after a given time.Duration
Execute action after a given time.Time
If job is executed and not canceled, returned true.
Wait job for a given time.Duration.
If job is executed within time, returned true.
If d is 0, waited for the job to execute.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.