27 Commits

Author SHA1 Message Date
Andrew Kelley
b70f12fc40 std.Io: delete asyncParallel 2025-07-20 10:38:39 -07:00
Andrew Kelley
363d7deb8a std.Io: fix error handling and asyncParallel docs 2025-07-20 10:38:39 -07:00
Andrew Kelley
33b10abaf6 std.Io: add asyncConcurrent and asyncParallel 2025-07-20 10:38:39 -07:00
Andrew Kelley
e95b26f1c6 std.Io: rename go to asyncDetached
it's a better name because it's more descriptive, not a reference, and
hints that it is less common than async
2025-07-20 10:38:39 -07:00
Andrew Kelley
38152c2d1c revert std.Thread.Pool for now
and move the Io impl to a separate file
2025-07-20 10:38:39 -07:00
Andrew Kelley
3f524ac5dc Io: update for new linked list API 2025-07-20 10:38:39 -07:00
Andrew Kelley
3178cf07f2 std.Io: remove @ptrCast workarounds
thanks to d53cc5e5b2ac51793ea19a847d8cee409af1dee3
2025-07-20 10:38:39 -07:00
Andrew Kelley
0f67ea4fa4 introduce Io.select and implement it in thread pool 2025-07-20 10:38:39 -07:00
Jacob Young
7b5886118d Io.Condition: implement full API 2025-07-20 10:38:39 -07:00
Andrew Kelley
74969d1c40 std.Io.Condition: change primitive to support only one
and no timer
2025-07-20 10:38:39 -07:00
Andrew Kelley
5aa3d1425e EventLoop: implement detached async
data races on deinit tho
2025-07-20 10:38:39 -07:00
Jacob Young
f3553049cb Io: implement faster mutex 2025-07-20 10:38:39 -07:00
Andrew Kelley
ebf92042e3 std.Io: add detached async 2025-07-20 10:38:39 -07:00
Andrew Kelley
a7790bd32e implement Mutex, Condition, and Queue 2025-07-20 10:38:38 -07:00
Jacob Young
012ef81b8b Io: implement sleep and fix cancel bugs 2025-07-20 10:38:38 -07:00
Jacob Young
1fbc251ccd EventLoop: implement thread-local queues and cancellation 2025-07-20 10:38:38 -07:00
Andrew Kelley
988f58341b std.Io: introduce cancellation 2025-07-20 10:38:38 -07:00
Andrew Kelley
dab5dd286f better API for Io.async 2025-07-20 10:38:38 -07:00
Andrew Kelley
d4ff3745d5 start adding fs functions to std.Io 2025-07-20 10:38:38 -07:00
Andrew Kelley
ad3c5f0292 fix context passing in threaded Io impl 2025-07-20 10:38:38 -07:00
Andrew Kelley
07ee4977da demo: single-threaded green threads implementation 2025-07-20 10:38:38 -07:00
Andrew Kelley
5b2f54fc80 introduce std.Io interface
which is planned to have all I/O operations in the interface, but for
now has only async and await.
2025-07-20 10:38:38 -07:00
John Benediktsson
6e86910e19
std.Io: Fix GenericReader.adaptToNewApi; add DeprecatedReader.adaptToNewApi (#24484) 2025-07-17 11:29:22 +00:00
Andrew Kelley
36f356254c align those @fieldParentPtr casts 2025-07-14 00:16:49 -07:00
Andrew Kelley
093fe02b75 add adaptToNewApi to std.Io.Reader as well 2025-07-14 00:14:21 -07:00
mochalins
61eff7b6dd std: Fix Io.Reader.Limited and add test 2025-07-11 17:46:14 +02:00
Andrew Kelley
5360968e03 std: rename io to Io in preparation
This commit is non-breaking.

std.io is deprecated in favor of std.Io, in preparation for that
namespace becoming an interface.
2025-07-11 01:16:27 +02:00