Class: Wee::Session::MutexSerializer

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

Overview

The default serializer, when no continuations 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



18
19
20
# File 'lib/wee/session.rb', line 18

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