Sha256: d36c295fe4c4acd68e11702f50381176c54ce438cf44b8ea1cf83bcca55c4cd3

Contents?: true

Size: 195 Bytes

Versions: 4

Compression:

Stored size: 195 Bytes

Contents

require 'rest-core/middleware'

class RestCore::AsyncFiber
  include RestCore::Middleware
  def call env
    if env[ASYNC]
      async.call(env)
    else
      fiber.call(env)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rest-core-1.0.3 lib/rest-core/app/abstract/async_fiber.rb
rest-core-1.0.2 lib/rest-core/app/abstract/async_fiber.rb
rest-core-1.0.1 lib/rest-core/app/abstract/async_fiber.rb
rest-core-1.0.0 lib/rest-core/app/abstract/async_fiber.rb