Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Kotlin coroutines and Flow: ownership, cancellation and events v1.0.0

Use this resource to clarify coroutine ownership and cancellation and choose StateFlow, SharedFlow or Channel

New

  • 390 downloads
  • 187 likes
  • 127 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install kotlin-coroutines-flow

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent reviews or designs Kotlin asynchronous code: the owner of each coroutine, cancellation, durable state and one-shot events. It picks StateFlow, SharedFlow, Channel or stateIn based on the semantics needed. You get asynchronous code with an explicit lifecycle.

Mostly picked by

Updated November 2, 2026

Card for the “Kotlin coroutines and Flow: ownership, cancellation and events” skill

Details

Generates with
Your agent's model
Licence
Apache-2.0

Similar resources

View all

What you get

  • references/: cards on state, events and flow sharing
  • references/: cards on structured concurrency and unscoped launches

Good fit for

  • A ViewModel launches coroutines in init without cancellation
  • An error event is lost when the screen rotates

Not for

    Tags

    • kotlin
    • coroutines
    • flow
    • stateflow
    • cancellation

    About

    You say

    “This ViewModel launches a coroutine in init and exposes an error message as StateFlow. Should it be a Channel?”

    Card for the “Kotlin coroutines and Flow: ownership, cancellation and events” skill

    Skill published by chrisbanes under the Apache-2.0 license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to clarify coroutine ownership and cancellation and choose StateFlow, SharedFlow or Channel
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE11.3 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/flow-state-events.md2.9 KB
    • references/structured-concurrency.md5.2 KB
    • SKILL.md2.8 KB

    Origin and licence

    Listed unmodified

    Author
    chrisbanes
    Source
    github.com/chrisbanes/skills/tree/8fc8836c80d8985583bf41117a3e5e8cb5eec248/skills/kotlin-concurrency-and-flow
    Licence
    Apache-2.0

    Notice

    « kotlin-concurrency-and-flow » (chrisbanes, Apache-2.0) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.