Discover Packages
github.com/aeridya/core
quit
package
Version:
v1.0.2
Opens a new window with list of versions in this module.
Published: Jul 29, 2019
License: MIT, MIT
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
README
¶
quit
This is a fork of the library quit for Aeridya
Expand ▾
Collapse ▴
Documentation
¶
AddQuit will add the function passed to the
quits array
Quit sends the signal to end the goroutine
The quit() function will be run if the state == true
blocks to completion
Quit runs all quit functions
func Run(quit func(), restart func())
Run begins to listen to the signals and runs the functions
passed to it. These should be the functions that shuts down your
application, the other restarts it. Starts the run() goroutine
Source Files
¶
Click to show internal directories.
Click to hide internal directories.