<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ytnk531</author_name>
  <author_url>https://blog.hatena.ne.jp/ytnk531/</author_url>
  <blog_title>マイペースなRailsおじさん</blog_title>
  <blog_url>https://ytnk531.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>ネットワークプログラミング</anon>
  </categories>
  <description>Fiberとnio4rを組み合わせてサーバーを作りました。あたまバグりそうになるのでよかったら見てってください。 Fiberとnio4rを組み合わせる Fiberは、軽量なスレッドを作成できます。このスレッド上で、途中まで実行した処理を中断し、再開することができます。 この特徴をうまく使ってやると、nio4rのselectと組み合わせて効率的な通信処理を実現できます。 非常にややこしいので、注意してください。 クライアントとの通信 Fiber.newで、ブロックにとった処理を行うFiberを作成できます。作成した時点では処理は実行されません。Fiber#resumeを呼ぶと、Fiber.yie…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fytnk531.hatenablog.com%2Fentry%2F2020%2F10%2F22%2F011115&quot; title=&quot;Fiberとnio4rでサーバー - マイペースなRailsおじさん&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/y/ytnk531/20201022/20201022010753.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-10-22 01:11:15</published>
  <title>Fiberとnio4rでサーバー</title>
  <type>rich</type>
  <url>https://ytnk531.hatenablog.com/entry/2020/10/22/011115</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
