Go has defer
which gives something approaching strict lexical lifetimes for
resource management but there is no direct support for object or resource
lifetimes that may outlive the function in which they are created. This small
library allows the user to create a tree of scope instances, each of which owns
the lifetime of zero or more resource-consuming objects (e.g. goroutines,
sockets, gRPC clients, etc) and which can be used to cleanly release said
resources.
-
Notifications
You must be signed in to change notification settings - Fork 0
Non-lexical Scopes for Go
License
mmcshane/nls
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Non-lexical Scopes for Go
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published