expose a forEach method as part of queue api