A Bigger Example

Understand the implementation of both tasks and agents through an example.

Rewriting our anagram code

Let’s rewrite our anagram code to use both tasks and an agent.

We’ll load words in parallel from a number of separate dictionaries. A separate task handles each dictionary. We’ll use an agent to store the resulting list of words and signatures.

Get hands-on with 1200+ tech skills courses.