Replies: 2 comments 1 reply
|
Thanks for linking the original issue. Here we have a case where ATL doesn't perform well : I/O can be awfully long because the user is targeting a file sitting on a NAS. As you may have noticed, ATL always operates on the file itself to avoid losing time copying bytes to memory or to a second file. As a consequence to that design, no writing operation can be gracefully interrupted. If that is a requirement, you should definitely use a temporary file in the Regarding your question, someone already brought that up here : #115 => It looks like there's a missing feature .NET doesn't support yet to enable ATL to do actual Async operations. Let me also put my bottom line comment here
|
|
Thank you for the detailled explanation.
Well, I think that ATL is just "killed in action" if you hit CTRL+C without handling this in the application gracefully and that should not be the case. So I think
I think this is one of the main advantages of
Ok, that is good to know. I think that stopping
Ok, I totally understand that. I just thought it would be a nice way of introducing Great, this solved most of my problems. Thanks again for taking the time. |
Uh oh!
There was an error while loading. Please reload this page.
Hey there,
Recently a
toneissue pointed me to a problem in my code, but then I noticed this might be something that cannot be solved easily withatldotnet...Since
atldotnetdoes not have an async / Task based API, is there a way to ensure, thatTrack.Savedoes not break files, ifCTRL+Cis pressed, while saving? Or is this completely up to me?I'm not an expert with
Task,asyncandCancellationTokenright now - I'm trying to get in, but it seems that killing the app viaCTRL+Cbroke the filestream of this user somehow.This line does the
Track.Save, but I'm not sure, how to handle theCancellationTokenin this case...https://github.com/sandreas/tone/blob/main/tone/Commands/TagCommand.cs#L104
Additionally, I would like to ask, if you plan to support something like
SaveAsyncandCancellationTokensomeday?All reactions