Skip to content

API methods should support the awaitable Task based Async/Await keywordsΒ #38

@grcodemonkey

Description

@grcodemonkey

var message = await mqClient.GetAsync();

In the original IronSharp project, the API is currently only supporting awaitable calls.

If we wanted to support the possible call models (Async, Sync, FireAndForget), I thought of an idea of doing something like:

IronTask postTask = mqClient.Post(...params...);

var syncResult = postTask .Send();

var asycResult = await postTask.SendAsync();

postTask.FireAndForget();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions