Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
15.787 Beiträge
 
#1

Assigning result to a function from asynchronous code

  Alt 11. Apr 2023, 14:20
One of the more common problems that comes up in multi-threading, especially when refactoring existing code, is assigning a result obtained from asynchronous code. In other words, how do you write a function that will return some value, and calculate that value in a background thread? Basically, converting the following code: function GetData(...): string; var Data: string; begin Data :=

Weiterlesen...
  Mit Zitat antworten Zitat