Class: Wee::Session::MutexSerializer

Inherits:
Mutex
  • Object
show all
Defined in:
lib/wee/session.rb

Overview

The default serializer, when no continuation are going to be used. Ensures that only one request of the same session is executed at the same time.

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



16
17
18
# File 'lib/wee/session.rb', line 16

def call(env)
  synchronize { env['wee.session'].call(env) }
end