S
stinkinrich88
Hello. I have a program that calls a method from another class. This
method takes a few seconds to execute as it uses a timer. I want a way
of telling the caller when the callee is finished. My idea was passing
a parameter to the callee containing the name of the method to run on
completion. This method would be in the caller's class.
So basically, how do i pass a method name to another class so that it
can be called at a later time?
Or, what better ways are there to be notified after a timer using
method has completed? (other than another timer as the timed code can
be finished by clicking the screen)
thanks!
method takes a few seconds to execute as it uses a timer. I want a way
of telling the caller when the callee is finished. My idea was passing
a parameter to the callee containing the name of the method to run on
completion. This method would be in the caller's class.
So basically, how do i pass a method name to another class so that it
can be called at a later time?
Or, what better ways are there to be notified after a timer using
method has completed? (other than another timer as the timed code can
be finished by clicking the screen)
thanks!