
com.github.akurilov.fiber4j.example.HelloWorldExclusiveFiber Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fiber4j Show documentation
Show all versions of fiber4j Show documentation
Co-operative multitasking utility
The newest version!
package com.github.akurilov.fiber4j.example;
import com.github.akurilov.fiber4j.FibersExecutor;
import com.github.akurilov.fiber4j.ExclusiveFiberBase;
import java.io.IOException;
/**
* Created by andrey on 23.08.17.
*/
public class HelloWorldExclusiveFiber
extends ExclusiveFiberBase {
public HelloWorldExclusiveFiber(final FibersExecutor executor) {
super(executor);
}
@Override
protected void invokeTimedExclusively(long startTimeNanos) {
System.out.println("Hello world!");
}
@Override
protected void doClose()
throws IOException {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy