Skip to content

Add CountdownLatch type #187

Description

@paulirwin

Java's CountDownLatch type has a significant difference from .NET's CountdownEvent: calling countDown() (equivalent to Signal() in CountdownEvent) once the count reaches to zero does not throw an exception. To make porting Java code easier that uses CountDownLatch, J2N should add a corresponding CountdownLatch type (note the difference in casing to match .NET).

See apache/lucenenet#1311 (comment) and the code in that PR for a starting point, where the Harmony tests are already ported.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions