eventually

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package eventually enables the use of finalizers whose registration can be blocked until an arbitrary point in the program.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Block

func Block() (unblock func())

Block delays finalizer registration until unblock is called.

func SetFinalizer

func SetFinalizer(p, f interface{})

SetFinalizer sets a finalizer f for pointer p.

If registration is currently blocked, SetFinalizer registers it in a background goroutine that first waits for registration to be unblocked.

Types

This section is empty.

Jump to

Keyboard shortcuts

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