Open
Description
Currently, it fails to drop the context when the port is still held by others. But, there is no way to guarantee whether all other holders released before the context dropped.
How about dropping context calls shutdown and making the methods of the Port
returns a Result
?
It also should make the shutdown of the Port
takes the mutable reference of the self. It means the user can access the port after shutdown, but I think this would be safer.