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 ¶
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.
Click to show internal directories.
Click to hide internal directories.