Sha256: 417723edba1b5194e7e038214b4ad8f54be0adfa405763a17ec6aaffc1a37b24
Contents?: true
Size: 690 Bytes
Versions: 10
Compression:
Stored size: 690 Bytes
Contents
# Usage (from the repo root): # env FLIPPER_CLOUD_TOKEN=<token> bundle exec ruby examples/cloud/threaded.rb require_relative "./cloud_setup" require 'bundler/setup' require 'flipper/cloud' puts Process.pid Flipper.configure do |config| config.default { Flipper::Cloud.new( local_adapter: config.adapter, debug_output: STDOUT, ) } end # You might want to do this at some point to see different results: # Flipper.enable(:search) # Flipper.disable(:stats) # Check every second to see if the feature is enabled 5.times.map { |i| Thread.new { loop do sleep rand Flipper.enabled?(:stats) Flipper.enabled?(:search) end } }.each(&:join)
Version data entries
10 entries across 10 versions & 1 rubygems