package cleanup

import "github.com/containerd/containerd/pkg/cleanup"

Package providing utilies to help cleanup

Index

Functions

func Background

func Background(ctx context.Context) context.Context

Background creates a new context which clears out the parent errors

func Do

func Do(ctx context.Context, do func(context.Context))

Do runs the provided function with a context in which the errors are cleared out and will timeout after 10 seconds.

Source Files

context.go

Version
v1.7.0-rc.2
Published
Mar 7, 2023
Platform
js/wasm
Imports
2 packages
Last checked
5 minutes ago

Tools for package owners.