All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.king.platform.net.http.netty.util.AwaitLatch Maven / Gradle / Ivy

There is a newer version: 3.0.26
Show newest version
package com.king.platform.net.http.netty.util;


import java.util.concurrent.CountDownLatch;

public class AwaitLatch {
    private CountDownLatch latch = new CountDownLatch(1);

    public void closed() {
        latch.countDown();
        latch = new CountDownLatch(1);
    }

    public void awaitClose() throws InterruptedException {
        latch.await();
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy