79744917

Date: 2025-08-24 13:55:20
Score: 0.5
Natty:
Report link
  1. Yes, the Send() method blocks until the delegate completes. It can be used to run code on the main thread, blocking the current thread (unless the two are the same). An example I took inspiration from is Unity's reference implementation.

  2. The role of OperationStarted() and OperationCompleted() is supporting async void methods according to this article. These methods don't return a Task object so there's no way for the caller to keep track of the task's state or any exceptions that might occur. The OperationStarted() method gets called when the method begins executing and the OperationCompleted() method is called when the method is finished. Exceptions are posted to the context as well.

Reasons:
  • Blacklisted phrase (1): this article
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: NorbiPeti