importJava "org.simantics.interop.scl.Threads" where runAsync :: (()) -> SCLThread setMaximumPoolSize :: Integer -> () importJava "org.simantics.interop.scl.Threads$SCLThread" where data SCLThread isRunning :: SCLThread -> Boolean isCompleted :: SCLThread -> Boolean hasErrors :: SCLThread -> Boolean getReturnValue :: SCLThread -> Maybe a