]> gerrit.simantics Code Review - simantics/interop.git/blobdiff - org.simantics.interop.scl/scl/Interop/Threads.scl
SCL threads support
[simantics/interop.git] / org.simantics.interop.scl / scl / Interop / Threads.scl
diff --git a/org.simantics.interop.scl/scl/Interop/Threads.scl b/org.simantics.interop.scl/scl/Interop/Threads.scl
new file mode 100644 (file)
index 0000000..84cb606
--- /dev/null
@@ -0,0 +1,15 @@
+importJava "org.simantics.interop.scl.Threads" where
+  
+  runAsync :: (<Proc>()) -> <Proc> SCLThread
+  
+  setMaximumPoolSize :: Integer -> <Proc> ()
+
+importJava "org.simantics.interop.scl.Threads$SCLThread" where
+  data SCLThread
+  
+  isRunning :: SCLThread -> <Proc> Boolean
+  isCompleted :: SCLThread -> <Proc> Boolean
+  hasErrors :: SCLThread -> <Proc> Boolean
+  getReturnValue :: SCLThread -> <Proc> Maybe a
+  
+  
\ No newline at end of file