mirror of
https://github.com/LBRYFoundation/lbry-sdk.git
synced 2025-08-23 17:27:25 +00:00
10 lines
213 B
Python
10 lines
213 B
Python
import asyncio
|
|
from twisted.internet import defer
|
|
|
|
|
|
def d2f(deferred):
|
|
return deferred.asFuture(asyncio.get_event_loop())
|
|
|
|
|
|
def f2d(future):
|
|
return defer.Deferred.fromFuture(asyncio.ensure_future(future))
|