Opened 4 months ago

#9366 enhancement new

react() should call ensureDeferred()

Reported by: Nathaniel J. Smith Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Branch:
Author:

Description

This should work:

from twisted.internet.task import react

async def main(reactor):
    print("hello world")

react(main)

But it doesn't:

AttributeError: 'coroutine' object has no attribute 'addBoth'

Change History (0)

Note: See TracTickets for help on using tickets.