Here are the examples of the csharp api System.Threading.Tasks.Task.FromResult(UnificationResult) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : EnumerablePredicateType.cs
with MIT License
from microsoft
with MIT License
from microsoft
public override Task<UnificationResult> OnGetNextAsync()
{
UnificationResult result = null;
while (result == null && this.enumerator != null && this.enumerator.MoveNext())
{
Term term = Term.FromObject(this.enumerator.Current);
if (this.binding.Unify(term, this.Input.Arguments[1].Value))
{
result = this.binding.CreateOutput();
}
this.binding.ResetOutput();
}
return Task.FromResult<UnificationResult>(result);
}