#Using thread.sleep with stringbuilder?

1 messages · Page 1 of 1 (latest)

inner flowerBOT
#

<@&987246399047479336> please have a look, thanks.

inner flowerBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

gleaming knoll
#

Why do you want to wait 2 seconds here ?

pine hound
serene stump
#

bc what ur asking is flawed

#

u can sleep for example with:

#
TimeUnit.SECONDS.sleep(2);
// or
Thread.sleep(2_000);

both do the same

#

however

#

there is likely no use case in practice where u would want to do that

#

there are much better approaches

#

but that depends on what exactly ur doing and why u think that sleeping would be useful here

#

then we can tell u the proper solution

gleaming knoll
# pine hound why not

First why specifically within two append ? There is no difference between doing that before, at the middle or after

And secondly, usually sleeping like that is flawed, if you have a gui for example, for the duration of the sleep, it won't respond
So what are you trying to do ?