cancel

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package cancel provides a middle-ware that ties the Cancel gRPC call from Pulumi to Go's context.Context cancellation system. See Wrap.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(provider p.Provider) p.Provider

Wrap ties a Pulumi's cancellation system to Go's context.Context's cancellation system. It guarantees two things:

1. When a resource operation times out, the associated context is canceled.

2. When `Cancel` is called, all outstanding gRPC methods have their associated contexts canceled.

A `Wrap`ped provider will still call the `Cancel` method on the underlying provider. If NotImplemented is returned, it will be swallowed.

Types

This section is empty.

Directories

Path Synopsis
internal
evict
Package evict is a helper package for github.com/pulumi/pulumi-go-provider/middleware/cancel.
Package evict is a helper package for github.com/pulumi/pulumi-go-provider/middleware/cancel.

Jump to

Keyboard shortcuts

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