← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #593074]: I'm trying to intialize Screen class inside a Callable in Java but its stuck until Callable timeout

 

Question #593074 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/593074

Description changed to:
I'm trying to initialize Screen class inside Callable in Java but its somehow stuck until Callable throw a timeout exception.
If I tried the same setup using Thread/Runnable its running properly without any problem.
Is there anything I missed?

ExecutorService executor = Executors.newSingleThreadExecutor();
Future<Boolean> future = executor.submit(new Callable<Boolean>() {
		@Override
		public Boolean call() throws Exception {
		              Screen s  = new Screen();
		}
});

edit : added example code

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.