curio/task.py
async def cancel(self, *, exc=TaskCancelled, blocking=True):
        '''
        Cancel a task by raising a CancelledError exception.

        If blocking=False, schedules the cancellation and returns immediately.

        If blocking=True (the default), then does not
        return until the task actually terminates.
        '''
        if self.terminated:
            self.joined = True
            return
        await _cancel_task(self, exc=exc)
        if blocking:
            await self.wait()

        Cancel a task by raising a CancelledError exception.

        If blocking=False, schedules the cancellation and returns immediately.

        If blocking=True (the default), then does not
        return until the task actually terminates.
        
Cancel a task by raising a CancelledError exception.
If blocking=False, schedules the cancellation and returns immediately.

If blocking=True (the default), then does not
return until the task actually terminates.
Cancel a task by raising a CancelledError exception . If blocking = False schedules the cancellation and returns immediately . If blocking = True ( the default ) then does not return until the task actually terminates .
async def cancel(self, *, exc=TaskCancelled, blocking=True):
        if self.terminated:
            self.joined = True
            return
        await _cancel_task(self, exc=exc)
        if blocking:
            await self.wait()
async def cancel ( self , * , exc = TaskCancelled , blocking = True ) : if self . terminated : self . joined = True return await _cancel_task ( self , exc = exc ) if blocking : await self . wait ( )
Cancel a task by raising a CancelledError exception.
Cancel a task by raising a CancelledError exception .
'''
        Cancel a task by raising a CancelledError exception.

        If blocking=False, schedules the cancellation and returns immediately.

        If blocking=True (the default), then does not
        return until the task actually terminates.
        '''
self
exc
blocking