The cause is wrong type has been used when creating the TaskCompletionSource.
Change-Id: I6aa63eb6105c466bb4914ffaccf7c94fac8c23a6
Signed-off-by: coderhyme <jhyo.kim@samsung.com>
private async Task ScanFolderAsyncCore(string folderPath, bool recursive, CancellationToken cancellationToken)
{
- var tcs = new TaskCompletionSource<bool>(TaskContinuationOptions.RunContinuationsAsynchronously);
+ var tcs = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously);
using (var cbKeeper = ObjectKeeper.Get(GetScanCompletedCallback(tcs, cancellationToken)))
using (RegisterCancellationAction(tcs, folderPath, cancellationToken))
ValidatePaths(paths);
var pathArray = paths.ToArray();
- var tcs = new TaskCompletionSource<bool>(TaskContinuationOptions.RunContinuationsAsynchronously);
+ var tcs = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously);
Interop.MediaInfo.InsertCompletedCallback callback = (error, _) =>
{