MCPcopy Create free account
hub / github.com/EasyIME/PIME / initialize

Method initialize

python/python3/tornado/ioloop.py:347–356  ·  view source on GitHub ↗
(self, make_current: Optional[bool] = None)

Source from the content-addressed store, hash-verified

345 return AsyncIOLoop
346
347 def initialize(self, make_current: Optional[bool] = None) -> None:
348 if make_current is None:
349 if IOLoop.current(instance=False) is None:
350 self.make_current()
351 elif make_current:
352 current = IOLoop.current(instance=False)
353 # AsyncIO loops can already be current by this point.
354 if current is not None and current is not self:
355 raise RuntimeError("current IOLoop already exists")
356 self.make_current()
357
358 def close(self, all_fds: bool = False) -> None:
359 """Closes the `IOLoop`, freeing any resources used.

Callers 6

jAlert-ie8.min.jsFile · 0.45
jAlert.min.jsFile · 0.45
__new__Method · 0.45
onCommandMethod · 0.45
rimeInitFunction · 0.45

Calls 2

make_currentMethod · 0.95
currentMethod · 0.80

Tested by

no test coverage detected