osa Wrote: > On 09/30/2010 03:33 PM, Sean Kelly wrote: > > osa Wrote: > >> > >> I've also thought about switching to 'send' if the receiver queue is > >> empty, but there is no way in std.concurrency API to check for that. Is > >> there any serious issue with adding such method? I understand that in > >> multi-threaded environment an empty queue as told by 'isEmpty' call may > >> become non-empty before that fact is used, but in some situations > >> approximate result (means empty or almost empty) is fine. > > > > The current API is designed to apply to in-process and out-of-process > > messaging, so a function like that doesn't really fit. > > I see. It is reasonable if out-of-process messaging is going to be > implemented.
It will be. But I want to get the bumps smoothed out for in-process messaging first.