<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Windymelt</author_name>
  <author_url>https://blog.hatena.ne.jp/Windymelt/</author_url>
  <blog_title>Lambdaカクテル</blog_title>
  <blog_url>https://blog.3qe.us/</blog_url>
  <categories>
    <anon>技術</anon>
    <anon>scala</anon>
    <anon>cats effect</anon>
  </categories>
  <description>Redditを見ていると便利そうな記事を発見した。 lukastymo.com この記事では、MutexやSemaphore、そしてCyclic Barrierの使い方について解説している。 セマフォとは同時に一定数のみがリソースにアクセスできるようにする、つまり「いくつまでなら同時に使えるか」を安全に管理するための、並行性制御のプリミティブである。駐車場の空き表示もセマフォだと考えることができるし、トイレの個室もセマフォだと考えられる。同時にアクセスしたら大変だからね。 typelevel.org https://typelevel.org/cats-effect/api/3.x/cats/…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.3qe.us%2Fentry%2F2025%2F06%2F20%2F222437&quot; title=&quot;Cats Effect 3でセマフォを使うときの便利なイディオム - Lambdaカクテル&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-06-20 22:24:37</published>
  <title>Cats Effect 3でセマフォを使うときの便利なイディオム</title>
  <type>rich</type>
  <url>https://blog.3qe.us/entry/2025/06/20/222437</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
