Macaulay2 » Documentation
Packages » Visualize :: closePort
next | previous | forward | backward | up | index | toc

closePort -- closes and open port

Description

When a port is opened with the openPort method, closePort() is used to close the port. If the user forgets to close the port, closing or restarting Macaulay2 will automatically close the port.

i1 : closePort()
--Port null is now closing. This could take a few seconds.

Caveat

This method does not have an input. In order for it to run, you must write the '()' at the end as follows: closePort().

See also

Ways to use closePort :

For the programmer

The object closePort is a method function.