Skip to content
This repository was archived by the owner on Nov 16, 2024. It is now read-only.
This repository was archived by the owner on Nov 16, 2024. It is now read-only.

ASA Option to run task when ready/available? #58

@fast-slow-still

Description

@fast-slow-still

Currently, trying to run a task when the SpacePinBinder/PubisherASA system is not ready or is busy will simply return, with an indication of failure.

It seems that a lot of applications might rather have the awaitable task wait until it can be processed, run, then return.

One implementation of this might be to make AcquireBusy awaitable. If the publisher has the WaitUntilReady property set to false, then get current behavior: If busy or not ready, immediate return false.

But if WaitUntilReady==true, then add self to waitQueue, spin until turn comes up, then return true.

So only code that changes is inside AcquireBusy (and ReleaseBusy).

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions