Method: Mongoid::Threaded#begin_execution

Defined in:
lib/mongoid/threaded.rb

#begin_execution(name) ⇒ true

Begin entry into a named thread local stack.

Examples:

Begin entry into the stack.

Threaded.begin_execution(:create)

Parameters:

  • name (String)

    The name of the stack

Returns:

  • (true)

    True.



123
124
125
# File 'lib/mongoid/threaded.rb', line 123

def begin_execution(name)
  stack(name).push(true)
end