Preferred Approach for Using a Runtime with Third-Party Packages
What is the preferred way of using a runtime for those situations where you need to send a function to some third party package that you don't know when it's going to be executed? Currently I have to approaches, and I don't know which one is better.
This is the first one, taking the runtime as function arguments:
The second one is, to yield the runtime inside the wrapping function and then use that runtime to execute the other function that you don't know when it's going to be executed and use that runtime. I guess the difference lies in the fact that you are in an already Effect function or not, and both ways are valid. I just wanted to share it with the community and see what you think about it
This is the first one, taking the runtime as function arguments:
The second one is, to yield the runtime inside the wrapping function and then use that runtime to execute the other function that you don't know when it's going to be executed and use that runtime. I guess the difference lies in the fact that you are in an already Effect function or not, and both ways are valid. I just wanted to share it with the community and see what you think about it
