sync/sync

Cross-platform scheduler-context helpers for spawning, yielding, sleeping, IPv4 formatting, and TCP wrapper creation.


Scheduling and timing


Network helpers


Result and ownership model


Examples

IPv4 formatting and spawn

"sync/sync" use
"String" use
"control" use

{} Int32 {} [
  0xC0A86465n32 ipv4ToString print
  LF print
  context: [("done" LF) printList] () spawn;
  @context.wait
  0
] "main" exportFunction

Expected Output

192.168.100.101
done

See also