When you add time-based asynchrony to a Swift feature, good luck testing it! You’re often led to literal Task.sleeps in your suite, making it slow and flakey all at once.
But did you know it’s possible to make Task.sleep completely synchronous, without a single thread hop?
See how a “nonisolated(nonsending)” clock can make asynchronous work like Task.sleep completely synchronous: https://www.pointfree.co/episodes/ep355-beyond-basics-isolation-copyable-escapable
Point-Free
@pointfreeco@hachyderm.io
A video series exploring Swift and functional programming. Hosted by @mbrandonw and @stephencelis. Save 30% off today! https://www.pointfree.co/discounts/black-friday-2025
hachyderm.io
Point-Free
@pointfreeco@hachyderm.io
A video series exploring Swift and functional programming. Hosted by @mbrandonw and @stephencelis. Save 30% off today! https://www.pointfree.co/discounts/black-friday-2025
hachyderm.io
@pointfreeco@hachyderm.io
·
Feb 26, 2026
3
0
0
Loading comments...