Stemmer.Cvb.Async Namespace

CVB.Net Documentation
The namespace Stemmer.Cvb.Async contains extension methods for IAcquisition types (like DeviceStreams) to use it with /.
Classes

  ClassDescription
Public classAcquisitionExtensions
Async wrapper methods for IAcquisition objects.
Examples

To be able to use the async variants you need to use the this namespace:
using Stemmer.Cvb;
using Stemmer.Cvb.Driver

using Stemmer.Cvb.Async;

static class Example
{
  public static async Task Acquire10Images(Stream stream)
  {
    stream.Start();
    try
    {
      for (int i = 0; i < 10; i++)
      {
        using (StreamImage image = await stream.WaitAsync())
        {
          // do processing...
        }
      }
    }
    finally
    {
      stream.Abort(); // ensure state after leaving method
    }
  }
}