<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>udzura</author_name>
  <author_url>https://blog.hatena.ne.jp/udzura/</author_url>
  <blog_title>ローファイ日記</blog_title>
  <blog_url>https://udzura.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>libuv経由で（uv_fs_open などで）作ったファイルへの参照（uv_fs_t）は基本的に非同期IOになるので、libuvのイベントループで取り扱うのに向いている。参照。 そうでないような同期的なIOのfile descriptor(fd)、たとえば普通にパイプで作ったやつや、 eventfd のようなものをlibuvのループで非同期的に待ちたい時には、 uv_poll_t が使えるそう。 mruby-uv では UV::Poll がその構造体と関数をラップしている。以下はパイプの片割れをポーリングして、もう一方には UV::Timer 経由で遅れて書き込むまで待つ例。 r, w = …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fudzura.hatenablog.jp%2Fentry%2F2017%2F01%2F13%2F175543&quot; title=&quot;mruby-uvで普通のfile descriptorが読み出し可能になるまで待つ - ローファイ日記&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/u/udzura/20170113/20170113175432.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-01-13 17:55:43</published>
  <title>mruby-uvで普通のfile descriptorが読み出し可能になるまで待つ</title>
  <type>rich</type>
  <url>https://udzura.hatenablog.jp/entry/2017/01/13/175543</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
