Skip to content

Asynchronous invoke #1

Description

@samsam07

A new asynchronous invoke method overload (InvokeAsync) should be added in ObjectInvoker and all implementations of IObjectMember. As implied by its name, the goal is to be able to asynchronously invoke a member.

It will work in 2 ways:

  1. Asynchronous invoke on a synchronous member
    Condition: Member invoke return value is not an instance of Task
    Result: This will wrap the synchronous invoke into an asynchronous one

  2. Asynchronous invoke on an asynchronous member
    Condition: Member invoke return value is an instance of Task
    Result: The returned instance of Task is asynchronously awaited

Synchronous invoke will remain unchanged.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions