- [x] New feature (non-breaking change which adds functionality)
Discussion here:
https://discourse.nodered.org/t/function-node-doesnt-have-timeout-feature/78483
## Proposed changes
Adding a timeout attribute to the function node, so an endless funciton doesnt break the node red server.
## Checklist
- [x] I have read the [contribution guidelines](https://github.com/node-red/node-red/blob/master/CONTRIBUTING.md)
- [x] For non-bugfix PRs, I have discussed this change on the forum/slack team.
- [x] I have run `grunt` to verify the unit tests pass
- [x] I have added suitable unit tests to cover the new/changed functionality