【文件属性】:
文件名称:jyield:java continuations 支持类似于 c# yield
文件大小:53KB
文件格式:ZIP
更新时间:2021-06-10 04:09:10
Java
产量
当心:这个项目目前没有得到积极维护。
jyield 旨在提供类似于协程的 java 延续支持。
使用@Continuable 注释的方法在运行时或可选地在编译时进行转换。
特征
发电机
续集
链接延续
执行状态序列化支持
尝试 catch 块支持
同步块支持
代码示例
import jyield.Continuable ;
import jyield.Yield ;
public class Sample {
@Continuable
public static Iterable< Integer> power ( int number , int exponent ) {
int counter = 0 ;
int result = 1 ;
【文件预览】:
jyield-master
----jyield()
--------src()
--------.classpath(692B)
--------launch()
--------NOTICE.txt(40B)
--------LICENSE.txt(11KB)
--------.settings()
--------util()
--------pom.xml(9KB)
--------examples()
--------.project(560B)
--------README.txt(860B)
--------TODO.txt(325B)
----README.md(4KB)