Delphi/간단하게
간단하게 Task로 작업하고 원하는 결과값 리턴 받기
uses .., System.Threading; TDevelopistTask = class public class function FuncWait(const AFunc: TFunc): T; static; end; class function TDevelopistTask.FuncWait(const AFunc: TFunc): T; var oFuture: IFuture; begin oFuture := TTask.Future(AFunc); Result := oFuture.Value; end; 사용법 - 결과값이 리턴될 때까지 대기상태이므로 적절하게 사용하시면 됩니다. if TDevelopistTask.FuncWait( function :Boolean begin Result := False; //to do.. Re..