kube-object-storage / lib-bucket-provisioner

Library for the dynamic provisioning of object store buckets to be used by object store providers.
Apache License 2.0
20 stars 22 forks source link

user should be able to cancel bucket provisioning #79

Open jeffvance opened 5 years ago

jeffvance commented 5 years ago
All long, blocking operations take context.Context
Context is a standard way to give users of your library control over when actions should be interrupted.

and related:

Allow clean shutdown of background goroutines
This is a preferred restriction on Goroutine lifetimes feedback. There should be a way to end any goroutines your library creates, in a way that won’t signal spurious errors.

From: https://medium.com/@cep21/aspects-of-a-good-go-library-7082beabb403