{"id":19672742,"url":"https://github.com/halilozel1903/coroutines101","last_synced_at":"2025-04-29T01:30:46.275Z","repository":{"id":37749970,"uuid":"442770180","full_name":"halilozel1903/Coroutines101","owner":"halilozel1903","description":"It's a project with examples of using Coroutines. 🧵 You will learn the concepts (GlobalScope, runBlocking, Nested Coroutine, Dispatcher, Suspend Function) 💻","archived":false,"fork":false,"pushed_at":"2023-12-15T16:25:27.000Z","size":135,"stargazers_count":20,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T12:23:16.437Z","etag":null,"topics":["coroutine","coroutines","coroutines-android","coroutines-channels","coroutines-flow","coroutines-io","coroutines-kotlin","coroutines-retrofit","coroutines-room","coroutines-testing","coroutines-ts","kotlin-android","kotlin-coroutines","kotlin-example","kotlin-examples","kotlin-lang","kotlin-language","kotlin-tutorial","kotlin-tutorials"],"latest_commit_sha":null,"homepage":"https://halilozel1903.medium.com/kotlin-coroutines-nedir-886a8f50010c","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/halilozel1903.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-29T12:45:19.000Z","updated_at":"2024-07-24T18:16:33.000Z","dependencies_parsed_at":"2023-01-26T11:45:42.077Z","dependency_job_id":null,"html_url":"https://github.com/halilozel1903/Coroutines101","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halilozel1903%2FCoroutines101","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halilozel1903%2FCoroutines101/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halilozel1903%2FCoroutines101/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halilozel1903%2FCoroutines101/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/halilozel1903","download_url":"https://codeload.github.com/halilozel1903/Coroutines101/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251415618,"owners_count":21585865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coroutine","coroutines","coroutines-android","coroutines-channels","coroutines-flow","coroutines-io","coroutines-kotlin","coroutines-retrofit","coroutines-room","coroutines-testing","coroutines-ts","kotlin-android","kotlin-coroutines","kotlin-example","kotlin-examples","kotlin-lang","kotlin-language","kotlin-tutorial","kotlin-tutorials"],"created_at":"2024-11-11T17:13:10.885Z","updated_at":"2025-04-29T01:30:45.863Z","avatar_url":"https://github.com/halilozel1903.png","language":"Kotlin","funding_links":["https://www.buymeacoffee.com/halilozel1903"],"categories":[],"sub_categories":[],"readme":"# Coroutines-101 🧵\n\n![Coroutines-101](https://miro.medium.com/max/800/1*1tDZwUd3NMQuIjZVkv-r0w.png)\n\nA coroutine is a concurrency design pattern that you can use on Android to simplify code that executes asynchronously. Coroutines were added to Kotlin in version 1.3 and are based on established concepts from other languages.\n\nOn Android, coroutines help to manage long-running tasks that might otherwise block the main thread and cause your app to become unresponsive. Over 50% of professional developers who use coroutines have reported seeing increased productivity. This topic describes how you can use Kotlin coroutines to address these problems, enabling you to write cleaner and more concise app code.\n\n\n## Features 👀\n\n![Coroutines-101](https://www.techyourchance.com/wp-content/uploads/2020/11/coroutines-cheat-sheet.jpg)\n\nCoroutines is our recommended solution for asynchronous programming on Android. Noteworthy features include the following:\n\n1. **Lightweight**: You can run many coroutines on a single thread due to support for suspension, which doesn't block the thread where the coroutine is running. Suspending saves memory over blocking while supporting many concurrent operations.\n2. **Fewer memory leaks**: Use structured concurrency to run operations within a scope.  \n3. **Built-in cancellation support**: Cancellation is propagated automatically through the running coroutine hierarchy.\n4. **Jetpack integration**: Many Jetpack libraries include extensions that provide full coroutines support. Some libraries also provide their own coroutine scope that you can use for structured concurrency.\n\n## Project Contents 📜\n\n- [CoroutineScope](https://github.com/halilozel1903/Coroutines101/blob/master/app/src/main/java/com/halil/ozel/coroutines101/CoroutineScopeClass.kt)\n- [Dispatchers Coroutines](https://github.com/halilozel1903/Coroutines101/blob/master/app/src/main/java/com/halil/ozel/coroutines101/DispatchersCoroutines.kt)\n- [GlobalScope](https://github.com/halilozel1903/Coroutines101/blob/master/app/src/main/java/com/halil/ozel/coroutines101/GlobalScopeClass.kt)\n- [Nested Coroutines](https://github.com/halilozel1903/Coroutines101/blob/master/app/src/main/java/com/halil/ozel/coroutines101/NestedCoroutines.kt)\n- [RunBlocking](https://github.com/halilozel1903/Coroutines101/blob/master/app/src/main/java/com/halil/ozel/coroutines101/RunBlockingClass.kt)\n- [Suspend Coroutines](https://github.com/halilozel1903/Coroutines101/blob/master/app/src/main/java/com/halil/ozel/coroutines101/SuspendCoroutines.kt)\n- [Coroutines Async](https://github.com/halilozel1903/Coroutines101/blob/master/app/src/main/java/com/halil/ozel/coroutines101/CoroutinesAsync.kt)\n\n## Donation 💸\n\nIf this project help 💁 you, Can you give me a cup of coffee? ☕\n\n[![\"Buy Me A Coffee\"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/halilozel1903)\n\n## License ℹ️\n```\nMIT License \n\nCopyright © 2022 Halil OZEL\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalilozel1903%2Fcoroutines101","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhalilozel1903%2Fcoroutines101","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalilozel1903%2Fcoroutines101/lists"}