Add version of listen which doesn't run new CFRunLoop#76
Add version of listen which doesn't run new CFRunLoop#76serhii-tokariev84 wants to merge 2 commits intoNarsil:mainfrom
Conversation
|
With this PR I was able to use the library in a Tauri app. Works well so far. Thank you! |
|
This would need to be done for ALL oses unfortunately, this is afaik, impossible. :( |
|
Any chance this gets merged anytome soon? I'd love to try it out |
|
No this will not get merged as it would be only available for MacOS, but by all means check out the branch and try it out ! |
|
though i think this can't be used with tauri on cross-platform apps anyway.. i'll try to think of a different solution |
Why cannot it be ? Tauri is just an app, as long as you respect the threading requirements it should work on all platforms Tauri or not Tauri. I used this crate to build an electron app and it worked just fine. |
would you have some sort of example? im not sure that it would work with the architecture i have currently setup. |
|
Not with Tauri, and it's been a long time since I used the electron app tbh. The main issue was being on the main thread (which is required by MacOS). I'm telling all this from memory so I might be wrong. Worst case scenario, that I started with was having a dedicated process for the listening part, and communicating with the electron app through your favorite cross process communication. |
No description provided.