Skip to content

Documentation on Kotlin's suspend #3

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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