File: doc.go

package info (click to toggle)
golang-github-arceliar-phony 0.0~git20220903.530938a-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 108 kB
  • sloc: makefile: 3
file content (7 lines) | stat: -rw-r--r-- 706 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
// Package phony is a small actor model library for Go, inspired by the causal messaging system in the Pony programming language.
// An Actor is an interface satisfied by a lightweight Inbox struct.
// Structs that embed an Inbox satisfy an interface that allows them to send messages to eachother.
// Messages are functions of 0 arguments, typically closures, and should not perform blocking operations.
// Message passing is asynchronous, causal, and fast.
// Actors implemented by the provided Inbox struct are scheduled to prevent messages queues from growing too large, by pausing at safe breakpoints when an Actor detects that it sent something to another Actor whose inbox is flooded.
package phony