Jump to content
higuy001

Pause Method That Doesn't Pause The Whole Program

Recommended Posts

Is there a method that pauses the specific method it's in, no others, for a certain # of nanoseconds or milliseconds.I have tried using delay(), but that stops the whole program and it gets on my nerves.Does anyone know of a delay() for only the method it's in? :) ~~Hi Guy~~

Share this post


Link to post
Share on other sites

It is not possible to pause only a certain method, while the method is invoked from a Thread or Process. Both can be looked up in the Java public API.When you want to pause only a certain snippet of a whole program, you should try looking into creating a separate Thread/Process, which enables you to pause anything it runs, separated from the other Thread. I don't know much about threading though.And if this sounds too difficult for you to approach, may I ask you in what situation you want to use this, every application is unique in its way, and one may have another sollution just jet.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...