---
title: "Discussion on \"Using Cats Effect's MapRef\" | Hashnode"
description: "Discussion on \"Using Cats Effect's MapRef\". (all code samples can be run using scala-cli)\nIf you use Cats Effect (CE) it is likely you have found that you need a Map instance that has to be fiber-safe as several fibers can access it concurrently. MapRef is a type offered by CE std package that..."
url: "https://hashnode.com/posts/using-cats-effects-mapref/65edacc5d921f61499fc5bed"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Using Cats Effect's MapRef](https://lrodero.hashnode.dev/using-cats-effects-mapref?utm_source=hashnode&utm_medium=feed)

(all code samples can be run using scala-cli) If you use Cats Effect (CE) it is likely you have found that you need a Map instance that has to be fiber-safe as several fibers can access it concurrently. MapRef is a type offered by CE std package that...

Mar 10, 2024 · 2 min read · lrodero.hashnode.dev  
Updated Mar 24, 2024  
Read the article

-   [#mapref](https://hashnode.com/tag/mapref)
-   [#scala](https://hashnode.com/tag/scala)
-   [#cats-effect](https://hashnode.com/tag/cats-effect)
-   [#concurrency](https://hashnode.com/tag/concurrency)
-   [#parallelism](https://hashnode.com/tag/parallelism)

## Written by

[Luis Rodero-Merino](https://hashnode.com/@gondolindrim)

@gondolindrim · Valladolid, Spain

  
[View profile](https://hashnode.com/@gondolindrim)

Scala dev

Dev interested in functional programming solutions for Scala.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
