class_docstr: Releases a Lock or Semaphore at the end of a "with" statement.
  
  with (yield semaphore.acquire()):
      pass
  
  # Now semaphore.release() has been called.
class_docstr_tok: ["Releases","a","Lock","or","Semaphore","at","the","end","of","a","``","with","''","statement",".","with","(","yield","semaphore.acquire","(",")",")",":","pass","#","Now","semaphore.release","(",")","has","been","called","."]
code: def __init__(self, obj):
      self._obj = obj
  
imports: from __future__ import absolute_import, division, print_function
  import collections
  from tornado import gen, ioloop
  from tornado.concurrent import Future
label_desc: Use image node_id 1 to create a new _ReleasingContextManager object from inherited base classes: object with example: obj = _ReleasingContextManager(obj)