Skip to content

Why are all signals defined in separate structures for Windows? #7093

Answered by Darksonn
pseusys asked this question in General
Discussion options

You must be logged in to vote

It probably could have been one type, but it's too late to change that now.

Is using Box<dyn Any> and then downcasting it to all the different signal types really the architecturally best way to use a common logic to handle different termination signals?..

Definitely not. Creating your own trait or enum would be way better than using dyn Any.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pseusys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants