Method CleanupAsync
Namespace: Belay.Core.Examples
Assembly: Belay.Core.dll
CleanupAsync()
Cleans up the device. Demonstrates [Teardown] attribute with [PythonCode].
csharp
[Teardown(Order = 1)]
[PythonCode("\n # Cleanup device resources\n print('Cleaning up device resources...')\n import gc\n gc.collect()\n print('Device cleanup complete')\n ")]
Task CleanupAsync()