Skip to content

Avoid Thread.sleep during build #527

Closed
@hearnadam

Description

@hearnadam

The comment in ScoverageSbtPlugin notes that this Thread.sleep(1000) was added to support Windows. Adding a 1s delay to otherwise performant builds is quite noticeable. The plugin could check the platform to avoid slowing down CI/CD, Linux, and Mac builds. Further, perhaps it's worth understanding why this issue is occurring in the first place.

Thread.sleep(
1000
) // have noticed some delay in writing on windows, hacky but works

Happy to open a PR, but opened the issue to understand if there was a deeper problem here.

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