handle

package
v0.0.0-...-e2e80d8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package handle provides utilites for working with sandstorm's util.Handle

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallbackHandle

func CallbackHandle(cb func()) util.Handle

CallbackHandle returns a handle which calls cb when the last reference to it is dropped.

func WithCancel

func WithCancel(ctx context.Context) (context.Context, util.Handle)

WithCancel is like context.WithCancel, except that it returns a Handle instead of a context.CancelFunc. When the handle is dropped, the context is cancelled.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL