Skip to content

OnCompleted should be called only after WaitUntilDone completes #27

@glopesdev

Description

@glopesdev

For output nodes operating in FiniteSamples mode, the workflow blocks waiting for samples to be played on cancellation:

task.WaitUntilDone();

task.WaitUntilDone();

While the blocking currently works for both completion and cancellation (which is important), it is awkward that OnComplete is sent before WaitUntilDone. It would be more consistent to either have a DAQmx-provided callback or launch a separate task to call WaitUntilDone in parallel, which could then be awaited both to send the completion event or on cancellation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew planned feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions