inv2004

Results 49 comments of inv2004

Ok, looks like I found the same issue, so the question is: 1) Is there any option to expose proc without precompiled .so or .pyd? 2) Any future plans to...

3. The same question, but about expose struct(object) without methods

@mratsim Yep, I wrote it in the "Description" - pretty sure my template is bad - it is just for the example

I decided to make `mgetOrDefault` for the moment - because most of initializations are ok with default values. It is not template

@c-blake to move template discussion here unrelated to https://github.com/nim-lang/Nim/pull/22994 I think that convert `mgetOrPut` into template would be a bit better because: 1) it is free optimization for everyone who...

I found that possibility to stop threads in pool is even more important. I have several threads which collect internet data and serialize it in the file. In case I...

@fede1024 Looks like that is what I wanted. Will check soon. Thank you.

Thank you. I just checked it, and it works exactly like I wanted: ``` let (_, _) = core.run(stream.into_future()).ok().unwrap(); task_handles.iter() .inspect(|x| info!("Stopping thread")) .for_each(|x| x.stop()); while ! task_handles.iter().all(|x| x.stopped()) {...

@fede1024 I am not sure, but I suppose it would be perfect to have fn stop(complete_fn: F) or maybe stop-future which would execute complete_fn right before exit the thread. (will...

@fede1024 I did additional check: ``` fn save(...) { info!("start"); thread::sleep(Duration:from_sec(5)); info!("end); } ``` and, after I received signal I do: ``` task_handles.iter() .inspect(|_| info!("Stopping thread")) .for_each(|x| x.stop()); while task_handles.iter().any(|x|...