How to make calling a Method as a background process in java

后端 未结 6 643
无人共我
无人共我 2021-01-16 06:50

In my application , I have this logic when the user logins , it will call the below method , with all the symbols the user owns .

public void sendSymbol(Stri         


        
6条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-16 07:30

    Sure, just use Java Threads, and join it to get the results (or other proper sync method, depends on your requirements)

提交回复
热议问题