Frontmatter
| id | 4660 |
| title | core.Base: timeout() |
| state | Closed |
| labels | enhancement |
| assignees | [] |
| createdAt | Aug 6, 2023, 6:05 PM |
| updatedAt | Aug 6, 2023, 6:35 PM |
| githubUrl | https://github.com/neomjs/neo/issues/4660 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Aug 6, 2023, 6:35 PM |

We have many classes which are using either
Neo.timeout()orsetTimeout(). Since instances can literally get destroyed at any moment, it would be nice if timeout callbacks would automatically get removed (viaclearTimeout()).To resolve this:
timeout()methodtimeoutIdinside an instance based arrayawait me.timeout(50);destroy()needs to check for timeoutIds first and clear them@ExtAnimal: did I get your idea right?