class_docstr: A coroutine wrapped in a Future.
code: def __init__(self, coro, *, loop=None, name=None, context=None):
      super().__init__(loop=loop)
      if self._source_traceback:
          del self._source_traceback[-1]
      if not coroutines.iscoroutine(coro):
          # raise after Future.__init__(), attrs are required for __del__
          # prevent logging for pending task in __del__
          self._log_destroy_pending = False
          raise TypeError(f"a coroutine was expected, got {coro!r}")
  
      if name is None:
          self._name = f"Task-{_task_name_counter()}"
      else:
          self._name = str(name)
  
      self._num_cancels_requested = 0
      self._must_cancel = False
      self._fut_waiter = None
      self._coro = coro
      if context is None:
          self._context = contextvars.copy_context()
      else:
          self._context = context
  
      self._loop.call_soon(self.__step, context=self._context)
      _register_task(self)
  
imports: import concurrent.futures
  import contextvars
  import functools
  import inspect
  import itertools
  import types
  import warnings
  import weakref
  from types import GenericAlias
  from .None import base_tasks
  from .None import coroutines
  from .None import events
  from .None import exceptions
  from .None import futures
  from .coroutines import _is_coroutine
label_desc: Use image node_id 1 to create a new Task object from inherited base classes: futures with example: obj = Task(coro)