Comments (5)
I'm voting in favor of removing the Begin.../End...
. It is a large breaking change, but perfectly acceptable for v2.0, I think.
from fo-dicom.
Thanks, @HisCodeness ! From a portability point of view, removing the Begin
/End
constructs is a good opportunity to get rid of the usages of (more-or-less) non-portable classes Thread
and ThreadPool
. On the other hand, as you point out, it is a large breaking change...
from fo-dicom.
True, it is a large change, but I think that is actually a good reason to do it now at 2.0.0 instead of later. :)
Also:
- From a library user's point of view, having two options to do the same thing can be confusing.
- In a couple of years, there will be devs who have had little exposure to
Begin/End
and don't really know what it is when they see it, but are comfortable with the language levelasync/await
construct. - Having to maintain two code paths doing the same thing is not desirable in the long run.
- When adding new features, you don't want to write two implementations just to allow clients be consistent.
- Async/await is much cleaner way of doing async, so forcing clients to adopt that is fine IMHO.
- And as you mention, portability is simplified.
Disclosure: Affecting my stance on this is that I don't have a legacy project I couldn't port to fo-dicom 2.0.0, including moving to async/await
, when the time comes.
from fo-dicom.
Thank you, @HisCodeness , you have given me the right arguments to proceed :-)
from fo-dicom.
I agree with @HisCodeness, it makes sense to avoid two ways of doing things.
If you want code-level backwards compatibility (so you couldn't just drop in a newer dicom.dll - you'd need a recompile instead) we could add in extension methods to still use the Begin/End and IAsyncResult pattern using the ideas from half way down http://blog.stephencleary.com/2012/07/async-interop-with-iasyncresult.html or the entire post at http://bartwullems.blogspot.com.au/2013/07/going-from-tasks-back-to.html
That would avoid the double-implementation whilst providing a nice migration path for those relying on the old async pattern.
from fo-dicom.
Related Issues (20)
- fo-dicom is missing NuGet package README file
- JsonDicomConverter is throwing an ArgumentException for Infinity values FL and FD VRs HOT 1
- HTj2k compression support HOT 1
- Error while trying to render image when OverlayData is present HOT 11
- Optimize Rendering by reducing memory usage
- Implement the new forumula of VOI LUT Function Linear_Exact
- Rendering of YBR_RCT and YBR_ICT fail
- Print SCU layout Images not rendering in the correct order
- Add Support to set dicom client ip HOT 2
- Set Time Out duration for requested association for C-Echo / C-Store HOT 4
- Question - How to Load PixelData as Fragments HOT 1
- ImageSharp is not free software - Disclaimer? HOT 5
- DICOM files where numeric tags contain "NaN" (don't ask) cause exceptions
- Race condition in GenericGrayscalePipeline
- Corrupt Multi-frame File - Consistent for all image sizes. HOT 2
- How to monitor the time for a SCU client to transfer multiple files at a time on the SCP Server side HOT 3
- Code in fo-dicom to apply window width and center on an image HOT 1
- TCP listener stuck while processing TLS handshake HOT 4
- HTJ2K Throwing exception HOT 2
- The SCU client transmits images to the fo-dicom c-store-scp, and the speed decreases sequentially after each task is transmitted
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fo-dicom.