Current section
Files
Jump to
Current section
Files
README.md
# otp
[](https://hex.pm/packages/pooka_otp)
[](https://pooka-otp.hexdocs.pm/)
[](https://github.com/pooka-lang/otp/actions/workflows/test.yml)
Typed OTP processes, servers, supervisors and applications for Pooka.
```sh
pooka add pooka_otp
```
```pooka
import pooka/otp
let inbox: otp.Subject(String) = otp.new_subject()
otp.send(inbox, "hello")
assert otp.receive(inbox, 1000) == Some("hello")
```
Uses the real OTP behaviours. Native Pooka actors can join supervision trees, and callback objects can implement `server.Handler`. Create each typed name or key once and retain it across restarts.
See the [API documentation](https://pooka-otp.hexdocs.pm/) for the rest.
## Licence
Licensed under the [Apache License, Version 2.0](LICENSE).