Update docs to use context manager

Add an example to the docs of how to use spawn() function with context manager.
1 file changed