Class AwaitExpression
Represents suspension point in the execution of the lambda function until the awaited task completes.
Inherited Members
Namespace: DotNext.Linq.Expressions
Assembly: DotNext.Metaprogramming.dll
Syntax
public sealed class AwaitExpression : CustomExpression
Constructors
| Improve this Doc View SourceAwaitExpression(Expression, Boolean)
Constructs await expression.
Declaration
public AwaitExpression(Expression expression, bool configureAwait = false)
Parameters
Type | Name | Description |
---|---|---|
Expression | expression | An expression providing asynchronous result in the form or Task or any other TAP pattern. |
Boolean | configureAwait | true to call ConfigureAwait(Boolean) with false argument. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Passed expression doesn't implement TAP pattern. |
Properties
| Improve this Doc View SourceType
Gets result type of asynchronous operation.
Declaration
public override Type Type { get; }
Property Value
Type | Description |
---|---|
Type |
Overrides
Methods
| Improve this Doc View SourceReduce()
Translates this expression into predefined set of expressions using Lowering technique.
Declaration
public override Expression Reduce()
Returns
Type | Description |
---|---|
Expression | Translated expression. |
Overrides
| Improve this Doc View SourceVisitChildren(ExpressionVisitor)
Visit children expressions.
Declaration
protected override Expression VisitChildren(ExpressionVisitor visitor)
Parameters
Type | Name | Description |
---|---|---|
ExpressionVisitor | visitor | Expression visitor. |
Returns
Type | Description |
---|---|
Expression | Potentially modified expression if one of children expressions is modified during visit. |
Overrides
Extension Methods
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, ValueFunc<T, TResult1>, ValueFunc<T, TResult2>)