Decryption is an asynchronous operation, which means that it can take some time to complete. Other events will continue running during this time.
You can use "Wait for previous action to complete" action inside the function and change the function type to asynchronous, but it won't work with functions which return values.