close method Null safety

void close ()

Closes the port.

After a call to this method, any incoming message is silently dropped. The handler will never be called again.

Implementation

void close();