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

kilim.YieldReason Maven / Gradle / Ivy

Go to download

Coroutines, continuations, fibers, actors and message passing for the JVM

The newest version!
/* Copyright (c) 2006, Sriram Srinivasan
 *
 * You may distribute this software under the terms of the license 
 * specified in the file "License"
 */

package kilim;

public class YieldReason implements PauseReason {
    public boolean isValid(Task t) {
        // Since a yield is not a reason to continue pausing, return false
        return false;
    }
    @Override
    public String toString() {
        return "yield";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy