471,353 Members | 1,551 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,353 software developers and data experts.

interrupt the after method?

Hi,

I got something like

after(2000, myMethod)

Is there any way, to stop the after method from calling myMethod?
My problem is, that myMethod might be called directly (within 2000 ms)
in which case I don't want it to be called again through the after method.

Thanks in advance
philip

Jul 18 '05 #1
1 1399
philip stöver wrote:
I got something like

after(2000, myMethod)

Is there any way, to stop the after method from calling myMethod?
My problem is, that myMethod might be called directly (within 2000 ms)
in which case I don't want it to be called again through the after method.


Problem solved. after_cancel(id) was what I've been looking for.

philip

Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

19 posts views Thread by Jane Austine | last post: by
7 posts views Thread by Tamir Khason | last post: by
2 posts views Thread by bvermeersch | last post: by
6 posts views Thread by Const | last post: by
2 posts views Thread by Hartmut | last post: by
reply views Thread by John Bailo | last post: by
5 posts views Thread by mysli | last post: by
2 posts views Thread by =?Utf-8?B?QnJ1Y2UgSFM=?= | last post: by
1 post views Thread by =?Utf-8?B?TXJOb2JvZHk=?= | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.