---
title: "Discussion on \"Coroutines\" | Hashnode"
description: "Discussion on \"Coroutines\". Normal functions are like single-focus tasks.\nCoroutines allow for multitasking by alternating between different activities.\nasync def coroutine_multiply_be_two(number: int) -> int: \n    return nubmer * 2\n\ndef multiply_by_two(number: int) -> int: \n  ..."
url: "https://hashnode.com/posts/coroutines/69718394e507bf1c24988fd9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Coroutines](https://gomdoricake.hashnode.dev/coroutines?utm_source=hashnode&utm_medium=feed)

Normal functions are like single-focus tasks. Coroutines allow for multitasking by alternating between different activities. async def coroutine\_multiply\_be\_two(number: int) -> int: return nubmer \* 2 def multiply\_by\_two(number: int) -> int: ...

Jan 21 · 2 min read · gomdoricake.hashnode.dev  
Read the article

-   [#coroutines](https://hashnode.com/tag/coroutines)
-   [#event-loop](https://hashnode.com/tag/event-loop)
-   [#asyncio](https://hashnode.com/tag/asyncio)
-   [#python](https://hashnode.com/tag/python)
-   [#advanced-python](https://hashnode.com/tag/advanced-python)
-   [#asynchronous](https://hashnode.com/tag/asynchronous)

## Written by

[junn](https://hashnode.com/@gomdoricake)

@gomdoricake · Melbourne, Australia

  
[View profile](https://hashnode.com/@gomdoricake)

Python Django Backend & DevOps Engineer

Python Django Developer | Django Rest Framework, AWS | Melbourne-based | Available for Immediate Start

## Responses

Comments are turned off for this post.
