Skip to content

Discussion: Recipes #266

@JohannesPtaszyk

Description

@JohannesPtaszyk

Hey, does it make sense to discuss adding recipes in a sample folder or something like that?

E.g. for some cases it makes sense to override the Dispatchers.Main with setMain, which then should probably be done with something like:

@InterceptTest
val mainDispatcherInterceptor = CoroutinesTestInterceptor {
  Dispatchers.setMain(StandardTestDispatcher(it.scope.testScheduler)
  it()
  Dispatchers.resetMain()
}

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