viant / toolbox

Toolbox - go utility library
Apache License 2.0
197 stars 29 forks source link

WIP: make things async #21

Closed atakanyenel closed 5 years ago

atakanyenel commented 5 years ago

This PR is currently work in progress. It's a PoC.

I made ProcessSlice function async by adding goroutines and wait groups. The logic has changed a little. Now that we are processing all elements at the same time, we can't stop execution when one of the handler return false.

Collections_async_test is copy of the collections_test. It's gradually updated as new functions added to collections_async.

Currently all tests passes. Future commits will also ensure that.