Conversation
@@ -113,38 +114,15 @@ mod baseline { | |||
} | |||
|
|||
/// Spawn function for juliex to get back a handle | |||
pub fn spawn<F, T>(fut: F) -> JoinHandle<T> | |||
pub fn spawn<F, T>(fut: F) -> RemoteHandle<T> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The model we've been using so far is Tasks being async versions of Threads. In so the naming of JoinHandle
would be more accurate, as it has a direct counterpart in std::thread::JoinHandle
.
The problem outlined in #78 is that the This patch would increase our dependency on |
You really don't know what you want. You are scared about atomic memory ordering, and you still want to maintain functionality needing just that which is (almost) already present in a "base" library to "reduce depedencies". Imho: if you really want the The idea about having different As I said in #78 (comment):
|
@stbuehler I sense you're frustrated, but really I'm in no mood to deal with the way you're engaging here. Closing this PR because it's not a change we desire at the time. |
@yoshuawuyts per your comments in here, I've reopened #78. Thanks! |
Yes, I'm frustrated. I don't enjoy dealing with stupid maintainer decisions. Reducing dependency to a high quality core crate that 99% of your users are going to need anyway and reimplementing its functionality which uses features you're not comfortable to review is just plain stupid. Deal with it. |
Replace
JoinHandle
withRemoteHandle
fromfutures
.This is a counter proposal to #78.
It changes the semantic a little (
RemoteHandle
must actually be used; if dropped without callingforget
it will cancel the future) - basically the opposite direction of #78.Types of changes