Sha256: 37b11b26734901d62e8aac6fa1611658ebd4d1e1a385cbd50a0a41fc7e619282

Contents?: true

Size: 462 Bytes

Versions: 93

Compression:

Stored size: 462 Bytes

Contents

---
layout: page
title: Polyphony::Terminate
parent: API Reference
permalink: /api-reference/polyphony-terminate/
---
# Polyphony::Terminate

`Polyphony::Terminate` is an exception class used to terminate a fiber without
propagating the exception. It should never be rescued. A `Polyphony::Terminate`
exception is normally raised using APIs such as `Fiber#terminate` or
`Fiber#terminate_all_children`.

```ruby
f = spin { do_something_slow }
...
f.terminate
```

Version data entries

93 entries across 93 versions & 1 rubygems

Version Path
polyphony-0.99 docs/api-reference/polyphony-terminate.md
polyphony-0.98 docs/api-reference/polyphony-terminate.md
polyphony-0.97 docs/api-reference/polyphony-terminate.md
polyphony-0.96 docs/api-reference/polyphony-terminate.md
polyphony-0.95 docs/api-reference/polyphony-terminate.md
polyphony-0.94 docs/api-reference/polyphony-terminate.md
polyphony-0.93 docs/api-reference/polyphony-terminate.md
polyphony-0.92 docs/api-reference/polyphony-terminate.md
polyphony-0.91 docs/api-reference/polyphony-terminate.md
polyphony-0.90 docs/api-reference/polyphony-terminate.md
polyphony-0.89 docs/api-reference/polyphony-terminate.md
polyphony-0.87 docs/api-reference/polyphony-terminate.md
polyphony-0.86 docs/api-reference/polyphony-terminate.md
polyphony-0.85 docs/api-reference/polyphony-terminate.md
polyphony-0.84.1 docs/api-reference/polyphony-terminate.md
polyphony-0.84 docs/api-reference/polyphony-terminate.md
polyphony-0.83 docs/api-reference/polyphony-terminate.md
polyphony-0.82 docs/api-reference/polyphony-terminate.md
polyphony-0.81.1 docs/api-reference/polyphony-terminate.md
polyphony-0.81 docs/api-reference/polyphony-terminate.md