Opened 10 months ago

Last modified 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 (1)

comment:1 Changed 4 months ago by wiml

I believe this is a duplicate of ticket:9283

Note: See TracTickets for help on using tickets.