Skip to content

About

Kotlin Coroutines Practise Question Based on Scenario

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Coroutines Practice

Title: Co-Routines Practice: Sharpen Your Skills with Practical Problems

by Yours Truely

Introduction:

Welcome to this repository! It's designed to help you solidify your understanding of coroutines in Kotlin through ten engaging word problems. You'll explore key concepts like dispatchers, scopes, async, await, cancellation, and more, all in an interactive, hands-on environment.

Problem Set:

This repo offers ten challenges that delve into various coroutines scenarios:

  1. Concurrent Data Fetching: Master fetching data from multiple APIs concurrently without blocking the UI.
  2. Multiple Tasks with Timeouts: Learn to manage tasks with time constraints using coroutine cancellation.
  3. Simulating a Bank Transaction: Understand how to achieve atomic operations for critical tasks like financial transactions.
  4. Lazy Coroutine Execution: Get a grasp of lazy execution, where tasks run only when needed.
  5. Downloading & Processing Files: Explore concurrent downloading and processing of multiple files.
  6. Simulating Race Conditions: Address race conditions by synchronizing access to shared resources.
  7. Long-Running Background Task: Implement background tasks (e.g., video compression) with cancellation support.
  8. Simulating API Rate Limiting: Respect rate limits imposed by external APIs.
  9. Cascading API Calls: Handle scenarios where subsequent API calls depend on previous responses.
  10. Retry Mechanism for Network Calls: Build a resilient function to retry failed network requests.

Getting Started:

Feel free to tackle these problems in any order. Each problem includes a clear description, an exercise to complete, and areas focused on for practice.

Additional Resources:

Contributing:

Contributions and suggestions are welcome! Feel free to add more challenging problems or share your solutions with the community.

Let the Practice Begin!

This repository provides a fun and practical way to enhance your coroutines knowledge. Dive in, solve problems, and strengthen your grasp of this powerful Kotlin feature.

About

Kotlin Coroutines Practise Question Based on Scenario

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages