←back to thread

293 points kristoff_it | 1 comments | | HN request time: 0.212s | source
Show context
tossandthrow ◴[] No.44609913[source]
The author does not seem to have made any non-trivial projects with asynchronicity.

All the pitfalls of concurrency are there - in particular when executing non-idempotent functions multiple times before previous executions finish, then you need mutexes!

replies(3): >>44610110 #>>44610754 #>>44611759 #
1. laserbeam ◴[] No.44611759[source]
Mutexes are part of the Io interface in zig. So is sleep, select, network calls, file io, cancellation…