motion/cdq/context.rb
# Create and push a new context with the specified concurrency type.  Its parent
# will be set to the previous head context.  If a block is supplied, the new context
# will exist for the duration of the block and then the previous state will be restore_managerd.
#
# REMOVE1.1
#
Create and push a new context with the specified concurrency type.  Its parent
will be set to the previous head context.  If a block is supplied, the new context
will exist for the duration of the block and then the previous state will be restore_managerd.


Create and push a new context with the specified concurrency type . Its parent will be set to the previous head context . If a block is supplied the new context will exist for the duration of the block and then the previous state will be restore_managerd .
def new(concurrency_type, &block)
      deprecate "cdq.contexts.new() is deprecated.  Use push() or create()"
      context = create(concurrency_type)
      push(context, {}, &block)
    end
def new ( concurrency_type , & block ) deprecate "cdq.contexts.new() is deprecated.  Use push() or create()" context = create ( concurrency_type ) push ( context , { } , & block ) end
Create and push a new context with the specified concurrency type.
Create and push a new context with the specified concurrency type .
concurrency_type
<not_specific>
block
<not_specific>