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
|
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Hey there,
Recently a
tone
issue pointed me to a problem in my code, but then I noticed this might be something that cannot be solved easily withatldotnet
...Since
atldotnet
does not have an async / Task based API, is there a way to ensure, thatTrack.Save
does not break files, ifCTRL+C
is pressed, while saving? Or is this completely up to me?I'm not an expert with
Task
,async
andCancellationToken
right now - I'm trying to get in, but it seems that killing the app viaCTRL+C
broke the filestream of this user somehow.This line does the
Track.Save
, but I'm not sure, how to handle theCancellationToken
in 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
SaveAsync
andCancellationToken
someday?Beta Was this translation helpful? Give feedback.
All reactions