demo: fixed compile, issue 34963

This commit is contained in:
mattias 2019-01-28 08:03:23 +00:00
parent c330f6ff6b
commit ce04b7c283

View File

@ -104,7 +104,7 @@ var
requestPromise : TJSPromise;
begin
fakeNetworkWait := Wait(3000 * random * Ord(fakeSlowNetwork));
fakeNetworkWait := Wait(trunc(3000 * random * Ord(fakeSlowNetwork)));
requestPromise:=TJSPromise.New(@DoRequest);
Result:=TJSPromise.all([fakeNetworkWait, requestPromise])._then(@ReturnResult);
end;