diary

I like Hatena Star with a text selection.

Entries from 2020-09-19 to 1 day

2020-09-18 - Ractor

pipe = Ractor.new { loop { Ractor.yield Ractor.recv } } 10.times.map do Ractor.new(pipe) do |pipe| loop do p pipe.take end end end 100.times do |i| pipe << i end sleep 1 RactorでQueueをやる方法を笹田さんに教えてもらった。 pipeというRactor…