Skip to content

Commit

Permalink
mark RunAsync as obsolete, fix #17
Browse files Browse the repository at this point in the history
  • Loading branch information
sdcb committed Feb 28, 2024
1 parent 48c4e54 commit c985b0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Sdcb.OpenVINO/InferRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public unsafe void Run()
/// Use it with caution and make sure you understand the risks before invoking this function.
/// </summary>
/// <returns>A <see cref="Task"/> representing the asynchronous inference operation.</returns>
[Obsolete("This method contains some unstable and hacky mechanisms that may potentially lead to crashes in your program. Use it with caution and make sure you understand the risks before invoking this function.")]
public async Task RunAsync(CancellationToken cancellationToken = default)
{
if (cancellationToken.IsCancellationRequested)
Expand Down

0 comments on commit c985b0f

Please sign in to comment.