We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm working on multithreading using the Callable interface for java. When I try to use the get() function I'm getting an error and I was wondering if it could be caused by processing trying to use it's default function, and if so how I would go about working around that.
Answers
Do not mutate the canvas outside the "Animation" Thread is as far I can advise for a codeless post!
Yeah, the issue is that I'm trying not to, but the callable interface also has a function named get()
Interface Callable is a FunctionalInterface.
And therefore got 1 method only. In this case it's called call():
http://Docs.Oracle.com/javase/8/docs/api/java/util/concurrent/Callable.html
If there's any method called get() from it, most probably it is the object returned after invoking call().
And there's no way to confuse PApplet::get() method w/ the 1 from another type.
B/c the former doesn't need the access operator dot
.
: \m/While for the latter, the dot
.
is obligatory. :>Good to know that get() isn't the issue. And you're right actually it would be a future thank you for catching that!