File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,6 @@ static ENSURE_FUTURE: OnceCell<PyObject> = OnceCell::new();
145
145
static EVENT_LOOP : OnceCell < PyObject > = OnceCell :: new ( ) ;
146
146
static EXECUTOR : OnceCell < PyObject > = OnceCell :: new ( ) ;
147
147
static CALL_SOON : OnceCell < PyObject > = OnceCell :: new ( ) ;
148
- static CREATE_TASK : OnceCell < PyObject > = OnceCell :: new ( ) ;
149
148
static CREATE_FUTURE : OnceCell < PyObject > = OnceCell :: new ( ) ;
150
149
151
150
fn ensure_future ( py : Python ) -> & PyAny {
@@ -209,15 +208,13 @@ fn try_init(py: Python) -> PyResult<()> {
209
208
event_loop. call_method1 ( "set_default_executor" , ( executor, ) ) ?;
210
209
211
210
let call_soon = event_loop. getattr ( "call_soon_threadsafe" ) ?;
212
- let create_task = asyncio. getattr ( "run_coroutine_threadsafe" ) ?;
213
211
let create_future = event_loop. getattr ( "create_future" ) ?;
214
212
215
213
ASYNCIO . get_or_init ( || asyncio. into ( ) ) ;
216
214
ENSURE_FUTURE . get_or_init ( || ensure_future. into ( ) ) ;
217
215
EVENT_LOOP . get_or_init ( || event_loop. into ( ) ) ;
218
216
EXECUTOR . get_or_init ( || executor. into ( ) ) ;
219
217
CALL_SOON . get_or_init ( || call_soon. into ( ) ) ;
220
- CREATE_TASK . get_or_init ( || create_task. into ( ) ) ;
221
218
CREATE_FUTURE . get_or_init ( || create_future. into ( ) ) ;
222
219
223
220
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments