You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
I have a time-consuming operation,so I use Java1.8 asynchronous. Like this :
function getSomeThing(){
CompletableFuture<List<String>> list = CompletableFuture.supplyAsync(() ->{
getList(); //task some seconds;
});
}
function getList(){
ApplicationUser loggedUser = JiraAuthenticationContext.getLoggedInUser();
}
My question is that the above loggerUser will be null, but I can get it if I don't user CompletableFuture, I don't know why ??
If someone can help , thank you so much !!!
Hello @caiyunCheng ,
Please notice that this might not be the best place to get help on development related questions. So, in case of no reply, I'd advise to refer to the resources listed in https://developer.atlassian.com/resources.
Specifically:
Cheers,
Dario
Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.