Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 298 Bytes
import traceback
from twisted.internet.defer import inlineCallbacks
@inlineCallbacks
def my_callbacks():
yield 1
traceback.print_stack()
from twisted.internet import reactor
reactor.stop()
from twisted.internet import reactor
reactor.callWhenRunning(my_callbacks)
reactor.run()