There is a `TODO` in the source code suggesting that this function should accept a FUN rather than a text string.