Files
aji/docs/reference/effects.md
T
dev b82bc35c5f spec: accept RFC 0012 and integrate waits, channels, select and mutex
revision 2 per owner review: reserved-feature dependencies may change
until publication (general rule, DD-014); task.join.cancel returns the
handle on cancelled with loans still LOANED; channel.sender.dup from
ref<sender<T>> (MPSC, receiver_dup reserved); task.wait required by
every suspending operation, task.join included, only in modules
declaring cancellation; sent values and handles come back as block
parameters on closed/cancelled edges; explicit channel states

spec 04 §37-§41 and pointers in §11-§16, §35, §36; spec 05 §9, 07
§8.11, 07a, 08 §14, 11 §6-§7; features cancellation, channels, sync
published (implementation pending); rwlock, channel_transfer,
receiver_dup, guard_transfer reserved; effect task.wait; E4304, E4305;
Q-013 resolved; bundle +15.8 % tokens (recorded)
2026-10-04 16:27:38 +03:00

1.3 KiB

Effect Registry

Normative registry of effect names for AIR format 0 (spec 05 §9). Effects are flat atoms: no effect implies another. In a module that declares the feature effects, an unregistered name is E0004.

Effect Authority required Introduced by
atomic none Phase 5
atomic.weak none Phase 5
clock.read cap<clock.read> RFC 0007
ffi none (unsafe boundary, spec 13) Phase 7
fs.read cap<fs.read> RFC 0007
fs.write cap<fs.write> RFC 0007
io.read cap<io.read> RFC 0007
io.write cap<io.write> RFC 0007
mem.alloc cap<mem.alloc> RFC 0008
mem.map cap<mem.map> later
net.connect cap<net.connect> RFC 0007
net.listen cap<net.listen> RFC 0007
net.read cap<net.read> RFC 0007
net.write cap<net.write> RFC 0007
process.env cap<process.env> later
process.spawn cap<process.spawn> later
random.read cap<random.read> RFC 0007
task.spawn none Phase 3
task.wait none RFC 0012 (required by suspending operations in modules declaring cancellation, spec 04 §37.4)
thread.block none Phase 3
thread.spawn none Phase 3
unsafe none (unsafe boundary, spec 13) Phase 2