Method ExecutePythonAsync<T>
Namespace: Belay.Core
Assembly: Belay.Core.dll
ExecutePythonAsync<T>(string, CancellationToken)
Executes Python code directly on the device.
csharp
public Task<T> ExecutePythonAsync<T>(string pythonCode, CancellationToken cancellationToken = default)
Parameters
pythonCode
string
The Python code to execute.
cancellationToken
CancellationToken
Cancellation token for the operation.
Returns
Task<T>
The result of the Python code execution.
Type Parameters
T
The return type.
ExecutePythonAsync(string, CancellationToken)
Executes Python code directly on the device without return value.
csharp
public Task ExecutePythonAsync(string pythonCode, CancellationToken cancellationToken = default)
Parameters
pythonCode
string
The Python code to execute.
cancellationToken
CancellationToken
Cancellation token for the operation.