package
Version:
v0.2.19
Opens a new window with list of versions in this module.
Published: Jun 21, 2026
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func AtomicDo[T any](actor *Actor, owner *T, f func(*T))
AtomicDo executes f with actor-style serialization.
func AtomicDoWithInit[T any](actor *Actor, owner *T, f func(*T), initHook func())
AtomicDoWithInit executes f with actor-style serialization and runs initHook once.
Actor provides actor-style serialized execution for any struct.
NewActor creates a new Actor bound to the provided group.
If group is nil, DefaultGroup is used.
Group defines a reentrancy scope for AtomicDo.
func DefaultGroup() *Group
DefaultGroup returns the package-wide default group.
NewGroup creates a new Group.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.