Jacob’s Tech Tavern

Jacob’s Tech Tavern

Quick Hacks: How to test a Task { }

Make your concurrency code rock-solid

Sep 30, 2024
∙ Paid

This article was inspired by my colleague, who was searching for a way to set up mocks that could support unit-testing unstructured concurrency. He stumbled, via Googling and serendipity, upon an ancient 12,000-word epic poem I’d written in a past life, covering async unit testing.

Hidden within, he found the solution he was searching for.

(I still haven’t shut up about it.)

Today, I’ll flex my improved writing chops and save you 45 minutes: I’ll condense this single original technique into a Quick Hack you can apply to your projects right now.

Paid members get lots of nice things:

⚓️ Access my full library of paywalled articles (including this one)
🚀 Read free articles a month before anyone else
🧵 Master concurrency with my full course and advanced training
🧑‍🚀 Get a free copy of my new eBook, “Land your iOS Tech Job”
❤️‍🩹 Support independent, sometimes funny, tech writing

User's avatar

Continue reading this post for free, courtesy of Jacob Bartlett.

Or purchase a paid subscription.
© 2026 Jacob Bartlett · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture