Skip to content

Commit 0fa696a

Browse files
committed
remove some unnecessary use of tornado
use asyncio where we can
1 parent 06199ea commit 0fa696a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: ipyparallel/apps/launcher.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""Facilities for launching IPython processes asynchronously."""
33
# Copyright (c) IPython Development Team.
44
# Distributed under the terms of the Modified BSD License.
5+
import asyncio
56
import copy
67
import logging
78
import os
@@ -326,8 +327,8 @@ def interrupt_then_kill(self, delay=2.0):
326327
except Exception:
327328
self.log.debug("interrupt failed")
328329
pass
329-
self.killer = self.loop.add_timeout(
330-
self.loop.time() + delay, lambda: self.signal(SIGKILL)
330+
self.killer = asyncio.get_event_loop().call_later(
331+
delay, lambda: self.signal(SIGKILL)
331332
)
332333

333334
# callbacks, etc:

0 commit comments

Comments
 (0)