-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/session #53
Feature/session #53
Conversation
e1a7db4
to
7bf1ad5
Compare
@aadcg This design is not without compromise. I tried to create a listener within a listener dynamically to fulfill the example shown here:
https://www.electronjs.org/docs/latest/api/download-item#class-downloaditem This proved to be very complicated, and prone to strange deadlocks. Having nested Within this method, we'll establish listeners for Additionally, we'll wrap the callback lambda to automatically update the I hope that all makes sense! Please let me know if any of this is unclear! I am sure as we add more listeners we'll discover more compromises in our design, and things we must change. I resisted the urge to change many things already with this PR. |
7bf1ad5
to
862fa2e
Compare
P.S. I suggest reading through this PR by going through the commits iteratively. |
862fa2e
to
0f115e4
Compare
I understand the implementation and I'd like to build upon it.
I'll finish this PR, thanks! |
Agreed!
I didn't want to shadow
That is how it already works in the example!
thank you! |
This function is used when the origin of a new object has to be in JavaScript. For example, when a new object is created from within a listener, but we wish to maintain a reference to it.
This is a good point. Let's keep keep |
This expands
cl-electron
to supportSession
objects andDownloadItem
objects.