System.Threading.Tasks.Task.FromResult(UnificationResult)

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 7

19 Source : EnumerablePredicateType.cs
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);
            }