Allow publish function to return an array or set of cursors