Multiple Messages on different outputs with delay

Found one alternate with delay node. But I want to achieve it in function node.