Skip to content

Documentation on Kotlin's suspend #3

@binkley

Description

@binkley

Is there documentation on the interaction of Awaitility with Kotlin's suspend?

I'd like to use Awaitility in a Kotlin library that itself it built around use of suspend. Presently there are icky sleep-like calls in tests, eg:

suspend fun waitForDispatch(millis: Long = 50) = delay(millis)

And the test functions themselves do not guard against timeout, etc. :(

I've used Awaitility on Java projects, and am eager to do the same for Kotlin.

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