Lodash: cancel a _.delay

Created on 6 Mar 2017  路  3Comments  路  Source: lodash/lodash

I'm wondering if there was any thought into adding the same .cancel to _.delay, a functionality that exists in _.throttle for example.

question

Most helpful comment

I know, I know, but I was advocating for consistency along lodash functionality.

PS: wrong mention

All 3 comments

Hi @andersonaguiar!

The _.delay and _.defer methods return a timer ID that you can use with clearTimeout.

I know, I know, but I was advocating for consistency along lodash functionality.

PS: wrong mention

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

erykpiast picture erykpiast  路  3Comments

SameerSiddiqui picture SameerSiddiqui  路  3Comments

jwngr picture jwngr  路  3Comments

satrong picture satrong  路  3Comments

dengyaolong picture dengyaolong  路  3Comments