Skip to content

Support Flow or Channel as Subscription return type #117

@hantsy

Description

@hantsy

When using Kotlin Coroutines in my project, I want to use Kotlin Coroutines API anywhere, it make my codes looks consistent, but it seems the Subscription does not support it.

val flow = MutableSharedFlow<Event>()

fun emitEvent() {
   flow.emit(event)
   ...
}

fun eventAdded()=flow

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions