Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix code example for Process.on_terminate #14798

Conversation

philipp-classen
Copy link
Contributor

Small tweak to the example. Currently, it results in an exception:

terminating gracefully
Unhandled exception: Channel is closed (Channel::ClosedError)
...

Instead of

terminating gracefully
bye

```
terminating gracefully
Unhandled exception: Channel is closed (Channel::ClosedError)
...
```

Instead of

```
terminating gracefully
bye
```
@straight-shoota straight-shoota added this to the 1.13.0 milestone Jul 8, 2024
@straight-shoota straight-shoota changed the title Documentation: Process.on_terminate example currently throws Fix code example for Process.on_terminate Jul 8, 2024
@straight-shoota straight-shoota merged commit 3d007b1 into crystal-lang:master Jul 8, 2024
61 checks passed
kojix2 pushed a commit to kojix2/crystal that referenced this pull request Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants