Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-417

Stop using tornado.gen for coroutine programming

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.2
    • Affects Version/s: None
    • Component/s: None
    • None

      tornado.gen provides utilities for defining and calling coroutines. We use several of these utilities in the Motor project, including but possible not limited to:

      • gen.coroutine - this has been superseded by async def
      • yield - though not really a tornado-specific thing, the use of this keyword to await coroutines was a programming paradigm encouraged by older tornado versions
      • gen.Return - starting in Python 3.5 coroutines can simply return values without needing to wrap them as was done by this helper

      With the demise of Python 3.4- support, we should remove these outdated patterns from our codebase.

            Assignee:
            prashant.mital Prashant Mital (Inactive)
            Reporter:
            prashant.mital Prashant Mital (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: