# Awaitility

DevFeed: [Awaitility](<https://devfeed.tech/articles/awaitility-27316.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/201910/awaitility/>)

Published: 2019-10-10T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Library](<https://devfeed.tech/topics/library.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [async](<https://devfeed.tech/topics/async.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [examples](<https://devfeed.tech/tags/examples.md>), [executorservice](<https://devfeed.tech/tags/executorservice.md>), [library](<https://devfeed.tech/tags/library.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [queue](<https://devfeed.tech/tags/queue.md>), [testing](<https://devfeed.tech/tags/testing.md>), [threads](<https://devfeed.tech/tags/threads.md>)

## AI overview

This tutorial introduces Awaitility, a small library for testing asynchronous code. It explains how Awaitility can express expectations for multithreaded systems concisely, using a producer-consumer example with a queue.

## Source excerpt

If you are not working with multithreading programming and don't have to test any asynchronous code then this post will probably do you nothing good. But if you have ever struggled with testing some logic running in multiple threads and you don't know Awaitility. A small library helps testing asynchronous code. If you've never heard of it then you should continue reading. Read more