Skip to content

docs: clarify Upgrade blocks until child responds - #88

Open
Solaris-star wants to merge 1 commit into
cloudflare:masterfrom
Solaris-star:docs/81-upgrade-docs
Open

docs: clarify Upgrade blocks until child responds#88
Solaris-star wants to merge 1 commit into
cloudflare:masterfrom
Solaris-star:docs/81-upgrade-docs

Conversation

@Solaris-star

Copy link
Copy Markdown

Description

Upgrade was documented as "triggers an upgrade", which sounds fire-and-forget. The method actually blocks on the child response channel and returns an error if the child fails or the process is already terminating/upgraded.

Fix

Expand the godoc to state that Upgrade waits for the child and returns the outcome.

Tests

Docs-only.

Linked Issue

Closes #81

The previous one-liner ("triggers an upgrade") reads like a fire-and-forget
call. Upgrade waits on the child response channel and returns an error if
the child fails or the process is already terminating/upgraded.

Fixes cloudflare#81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade function documentation

1 participant