Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add a basic fiber pool example

  • Loading branch information...
commit f69575e8c816baf5e65337c5079082453a67eb3f 1 parent 9f9084f
Pratik lifo authored

Showing 1 changed file with 18 additions and 0 deletions. Show diff stats Hide diff stats

  1. +18 0 examples/fibers_hello_world.ru
18 examples/fibers_hello_world.ru
... ... @@ -0,0 +1,18 @@
  1 +require "rubygems"
  2 +require "bundler"
  3 +Bundler.setup(:default, :example)
  4 +
  5 +require 'cramp'
  6 +
  7 +class FibersController < Cramp::Action
  8 + use_fiber_pool :size => 200
  9 +
  10 + def start
  11 + render "Hello World"
  12 + finish
  13 + end
  14 +end
  15 +
  16 +# bundle exec thin -V -R examples/fibers_hello_world.ru start
  17 +# bundle exec rainbows -E deployment -c examples/rainbows.conf examples/fibers_hello_world.ru
  18 +run FibersController

0 comments on commit f69575e

Please sign in to comment.
Something went wrong with that request. Please try again.