Add function cogroup().

I guess this function will be passed and evaluated in the worker?