11/27/2023 7:32 PM | |
Joined: 1/21/2013 Last visit: 1/15/2025 Posts: 3431 Rating: (539)
|
Hi gigiA, The ReadFile method is an asynchronous operation that returns a Promise object. Therefore, it is desirable behavior to continue code execution even if the Promise is not set. If you really want to wait, you can set an await statement before the ReadFile call. A completed read operation is handled by the than handler, while an erroneous execution is handled by the catch handler. Kind regards |
This contribution was helpful to2 thankful Users |
Follow us on