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.1
Published
May 10, 2023
Platform
darwin/amd64
Imports
2 packages
Last checked
6 minutes ago

Tools for package owners.