A simple version of the STL async queue with a pickle functionality