In my program (.net framework 4) i want release asynchronous file saving.
What i must use?
The Task class or BeginWrite method?
What’s the difference? And what is better?
In my program (.net framework 4) i want release asynchronous file saving. What i
Share
You can use Task.Factory.FromAsync to wrap the
BeginWrite/EndWritemethod pairs into aTask<T>. This will let you use the TPL to write asynchronous code, while still using the underlying asynchronous IO methods.