<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>m_seki</author_name>
  <author_url>https://blog.hatena.ne.jp/m_seki/</author_url>
  <blog_title>@m_seki の</blog_title>
  <blog_url>https://druby.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>Fiberっていうかコルーチンはこういうのに向いてるよなー。 いまなにやってるのか情報を持ち回すんじゃなくて、制御自体がそれを持っている。状態遷移マシンとか書くよりも、コルーチンでいったん休むほうがすっきり。 class Emitter def initialize @fiber = Fiber.new do |it| @plist = do_pop(it) end end attr_reader :plist def push(it) @fiber.resume(it) end def on_value(obj) push(obj) end def on_stag(name) push(na…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdruby.hatenablog.com%2Fentry%2F20120102%2F1325480494&quot; title=&quot;Fiberの使いどころ - @m_seki の&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>2012-01-02 14:01:34</published>
  <title>Fiberの使いどころ</title>
  <type>rich</type>
  <url>https://druby.hatenablog.com/entry/20120102/1325480494</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
