class_docstr: An event blocks coroutines until its internal flag is set to True.
  
  Similar to `threading.Event`.
  
  A coroutine can wait for an event to be set. Once it is set, calls to
  ``yield event.wait()`` will not block unless the event has been cleared:
  
  .. testcode::
  
      import asyncio
      from tornado import gen
      from tornado.locks import Event
  
      event = Event()
  
      async def waiter():
          print("Waiting for event")
          await event.wait()
          print("Not waiting this time")
          await event.wait()
          print("Done")
  
      async def setter():
          print("About to set the event")
          event.set()
  
      async def runner():
          await gen.multi([waiter(), setter()])
  
      asyncio.run(runner())
  
  .. testoutput::
  
      Waiting for event
      About to set the event
      Not waiting this time
      Done
class_docstr_tok: ["An","event","blocks","coroutines","until","its","internal","flag","is","set","to","True",".","Similar","to","`","threading.Event","`",".","A","coroutine","can","wait","for","an","event","to","be","set",".","Once","it","is","set",",","calls","to","``","yield","event.wait","(",")","``","will","not","block","unless","the","event","has","been","cleared",":","..","testcode",":",":","import","asyncio","from","tornado","import","gen","from","tornado.locks","import","Event","event","=","Event","(",")","async","def","waiter","(",")",":","print","(","``","Waiting","for","event","''",")","await","event.wait","(",")","print","(","``","Not","waiting","this","time","''",")","await","event.wait","(",")","print","(","``","Done","''",")","async","def","setter","(",")",":","print","(","``","About","to","set","the","event","''",")","event.set","(",")","async","def","runner","(",")",":","await","gen.multi","(","[","waiter","(",")",",","setter","(",")","]",")","asyncio.run","(","runner","(",")",")","..","testoutput",":",":","Waiting","for","event","About","to","set","the","event","Not","waiting","this","time","Done"]
docstr: Return ``True`` if the internal flag is true.
docstr_tok: ["Return","``","True","``","if","the","internal","flag","is","true","."]
code: def is_set(self) -> bool:
      """Return ``True`` if the internal flag is true."""
      return self._value
  
imports: import collections
  import datetime
  import types
  from tornado import gen, ioloop
  from tornado.concurrent import Future, future_set_result_unless_cancelled
  from typing import Union, Optional, Type, Any, Awaitable
  import typing
label_desc: Use image node_id 3 for calling the Event obj's underlying member method code with example usage: obj.is_set() and returns: self