I want to have API like setTimeout/clearTimeout. So I created an example:
It consists of two buttons - “Press me” (which starts timeout via Process.sleep and Process.spawn) and “StopTimeout” (which double kills the timeout)
Previously I killed timeout once, but I faced runtime exception when I tried to kill the same timeout twice.
So I decided to kill twice in the example in order to reproduce this behavior.
Is this an expected behavior to crash app on double process kill?