hi everyone, I have this function called create schedule which took a room_id and a dto , and inside it I want to check if the room_id exist in the database then if so I want to use that room_id and the dto to create the schedule and after that I want to create the schedule days which took the schedule_id from the function call above it
and as you can see there is a lot of waiting above and blocking to the user which I don't like -_-
is there a way to not wait this code to finish and return done to the user and handle it in the background with the same order of the function ?
#How to not Block the user when doing a task take a long time?
2 messages · Page 1 of 1 (latest)