Conversation
|
I kinda hate how convoluted the current watch API has gotten. If you want to, feel free to completely refactor it into whatever suits you best. |
|
The best API I could think of is the channel-like one... Also I could not find any tests for |
|
Whatever you feel like is easier. I just want to encourage you to make a new API if you have a better idea, rather than trying to keep supporting the existing one (like I did in the past). Not sure how viable it is, but do we even have to spawn a new thread? Couldn't we just eat the current thread and have the argument be a closure that handles the result of a compile? Then the application can spawn a thread and move the data through a pipe, if it wants to. But it doesn't have to. |
I agree that rewriting this API could be beneficial. But I just wanted to patch it to finish
As I see by
Yes, I think that could be easily done on |
|
Closing this for now in favor of #422 |
This is needed for Rust-GPU/cargo-gpu#112 to add
watch()method for shader crate builder ofcargo-gpu-buildcrate.