Sha256: 819f607a911ef912eb6fa2da95632b0de87ab276e428370f533efdfa8d2689c2
Contents?: true
Size: 350 Bytes
Versions: 21
Compression:
Stored size: 350 Bytes
Contents
# frozen_string_literal: true require 'bundler/setup' require 'polyphony' require 'polyphony/adapters/readline' $counter = 0 timer = spin do throttled_loop(5) do $counter += 1 end end at_exit { timer.stop } puts 'try typing $counter to see the counter incremented in the background' loop do puts eval Readline::readline('> ', true) end
Version data entries
21 entries across 21 versions & 1 rubygems