Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Commit

Permalink
Fixed calling awaiter with Task.FromResult
Browse files Browse the repository at this point in the history
  • Loading branch information
mdaveynis committed Mar 8, 2017
1 parent f073ad3 commit 8cec982
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -142,8 +142,8 @@ JSIL.ImplementExternals("System.Threading.Tasks.Task", function ($) {
new JSIL.MethodSignature($jsilcore.TypeRef("System.Threading.Tasks.Task`1", ["!!0"]), ["!!0"], ["TResult"]),
function(TResult, result) {
var task = new ($jsilcore.System.Threading.Tasks.Task$b1.Of(TResult));
task.status = $jsilcore.System.Threading.Tasks.TaskStatus.RanToCompletion;
task.result = result;
task.SetComplete();
return task;
}
);
Expand Down

0 comments on commit 8cec982

Please sign in to comment.