OnCancel executes f when ctx is canceled.
(f func())
| 97 | |
| 98 | // OnCancel executes f when ctx is canceled. |
| 99 | func (ctx *Context) OnCancel(f func()) { |
| 100 | ctx.cleanupFuncs = append(ctx.cleanupFuncs, f) |
| 101 | } |
| 102 | |
| 103 | // FileSystems returns a ref to the FilesystemMap. |
| 104 | // EXPERIMENTAL: This API is subject to change. |
no outgoing calls
no test coverage detected