Bu Sun Kim | 945bafc | 2020-06-09 10:57:48 -0700 | [diff] [blame] | 1 | .. note:: |
| 2 | |
gcf-owl-bot[bot] | 8d8bc51 | 2021-05-24 16:30:03 +0000 | [diff] [blame] | 3 | Because this client uses :mod:`grpc` library, it is safe to |
Bu Sun Kim | 945bafc | 2020-06-09 10:57:48 -0700 | [diff] [blame] | 4 | share instances across threads. In multiprocessing scenarios, the best |
| 5 | practice is to create client instances *after* the invocation of |
gcf-owl-bot[bot] | 8d8bc51 | 2021-05-24 16:30:03 +0000 | [diff] [blame] | 6 | :func:`os.fork` by :class:`multiprocessing.pool.Pool` or |
Bu Sun Kim | 945bafc | 2020-06-09 10:57:48 -0700 | [diff] [blame] | 7 | :class:`multiprocessing.Process`. |