Skip to content

[enhancement]: Should we allow setTimeout in unload? #2978

Closed
@Apollon77

Description

@Apollon77

No existing issues.

  • There is no existing issue for my request.

Description

Currently we decline "adapter.setTimeout()" as soon as the stop process was started which completely prevents usage of setTimeout in unload. For some adapters, especially with custom "stopTimeout" in config this might be not the ideal way.

We could in general allow it - but need to be careful, but in fact will be cancelled anyway.

Wen could also allow it when a custom stopTimeout is set and only allow it then?

Why?

Matter adapter cleans up things and some use timeouts in the background (that are all inside the stopTimeout range)

How?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions