X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.scl.runtime%2Fscl%2FAsync.scl;h=1988eb5319eebb2c29ed9fa27e2589c766b56f6b;hp=f4b3a92983eb38e8484f8d6e34b0e5c7b22f2d29;hb=3bf1cf8f931ff10ea17f0c92b94cc49eb42d07d2;hpb=951846b17c8c02759b7a319b0f2952cafacb8bea diff --git a/bundles/org.simantics.scl.runtime/scl/Async.scl b/bundles/org.simantics.scl.runtime/scl/Async.scl index f4b3a9298..1988eb531 100644 --- a/bundles/org.simantics.scl.runtime/scl/Async.scl +++ b/bundles/org.simantics.scl.runtime/scl/Async.scl @@ -1,3 +1,18 @@ +import "Future" + +importJava "java.util.concurrent.TimeUnit" where + data TimeUnit + NANOSECONDS :: TimeUnit + MICROSECONDS :: TimeUnit + MILLISECONDS :: TimeUnit + SECONDS :: TimeUnit + HOURS :: TimeUnit + DAYS :: TimeUnit + importJava "org.simantics.scl.runtime.utils.AsyncUtils" where runAsync :: ( a) -> () pmap :: (a -> b) -> [a] -> [b] + + scheduleAtFixedRate :: ( a) -> Long -> Long -> TimeUnit -> Future a + scheduleWithFixedDelay :: ( a) -> Long -> Long -> TimeUnit -> Future a + schedule :: ( a) -> Long -> TimeUnit -> Future a \ No newline at end of file