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

com.englishtown.promises.internal.ContinuationTask Maven / Gradle / Ivy

There is a newer version: 3.1.1
Show newest version
package com.englishtown.promises.internal;

import com.englishtown.promises.internal.handlers.Handler;

/**
 * Run a single consumer
 */
public class ContinuationTask implements Runnable {

    private final Continuation continuation;
    private final Handler handler;

    public ContinuationTask(Continuation continuation, Handler handler) {
        this.continuation = continuation;
        this.handler = handler;
    }

    @Override
    public void run() {
        this.handler.join().when(this.continuation);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy