<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>osyo-manga</author_name>
  <author_url>https://blog.hatena.ne.jp/osyo-manga/</author_url>
  <blog_title>Secret Garden(Instrumental)</blog_title>
  <blog_url>https://secret-garden.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby 3.0</anon>
    <anon>Ruby</anon>
  </categories>
  <description>簡単にやってみた。 $stdout.sync = true puts &quot;かいし！！！&quot; data = (1..10).to_a.shuffle pp data ractors = data.map { |i| Ractor.new(i) { |it| # バッファリングを無効化 $stdout.sync = true sleep it / 5.0 puts it } } # 待ち処理 ractors.map(&amp;:take) puts &quot;おわり！！&quot; https://wandbox.org/permlink/8uwLgJDQ1eP4dDKa コード自体はそんなに難しいことはやっていませんね。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2020%2F09%2F19%2F115511&quot; title=&quot;Ruby の Ractor で sleep sort をやってみた - Secret Garden(Instrumental)&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>2020-09-19 11:55:11</published>
  <title>Ruby の Ractor で sleep sort をやってみた</title>
  <type>rich</type>
  <url>https://secret-garden.hatenablog.com/entry/2020/09/19/115511</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
