Package documentation

pooka_otp

1.0.0

otp

Package Version Hex Docs Tests

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 for the rest.

Licence

Licensed under the Apache License, Version 2.0.