Skip to content

Commit c985b0f

Browse files
committed
mark RunAsync as obsolete, fix #17
1 parent 48c4e54 commit c985b0f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Sdcb.OpenVINO/InferRequest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public unsafe void Run()
7373
/// Use it with caution and make sure you understand the risks before invoking this function.
7474
/// </summary>
7575
/// <returns>A <see cref="Task"/> representing the asynchronous inference operation.</returns>
76+
[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.")]
7677
public async Task RunAsync(CancellationToken cancellationToken = default)
7778
{
7879
if (cancellationToken.IsCancellationRequested)

0 commit comments

Comments
 (0)