<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iridge_yoshida</author_name>
  <author_url>https://blog.hatena.ne.jp/iridge_yoshida/</author_url>
  <blog_title>アイリッジ開発者ブログ</blog_title>
  <blog_url>https://iridge-tech.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>こんにちは。開発部第一グループの吉田です。 SwiftのCombineでreceive(on:options:)メソッドはPublisherから要素を受け取るSchedulerを指定するために使用されますが、コードレビューやブログ記事のサンプルでRunLoop.mainとDispatchQueue.mainがSchedulerとして使用されているのを見かけます。どちらもメインスレッドで実行されますが、これら二つの主な違いは何で、各々はいつ使用すべきなのかを見ていきたいと思います。 RunLoop.main RunLoopはイベント、タイマー、その他の非同期タスクを管理し、効率的にそれらを処理す…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Firidge-tech.hatenablog.com%2Fentry%2F2025%2F04%2F22%2F120000&quot; title=&quot;Swift CombineでのRunLoop.mainとDispatchQueue.main - アイリッジ開発者ブログ&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>https://cdn-ak.f.st-hatena.com/images/fotolife/i/iridge_yoshida/20250409/20250409110413.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-04-22 12:00:00</published>
  <title>Swift CombineでのRunLoop.mainとDispatchQueue.main</title>
  <type>rich</type>
  <url>https://iridge-tech.hatenablog.com/entry/2025/04/22/120000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
