1
0

readme.md 258 B

Usage example


func main() {
	ctx, cancel := context.WithCancel(context.Background())
	
	closer.Init(
	    closer.NewConfig(
            closer.WithTimeout(time.Second * 10),
        )
    )

    // run server 
    
	cancel()
	closer.Wait(ctx)
}