Jump to content

Pause Method That Doesn't Pause The Whole Program


higuy001

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~~

Link to comment
Share on other sites

  • 5 weeks later...

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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...