(
cls, callback, batch=False, prefetch_queue_depth=1, bytes_per_sample_hint=None
)
| 62 | |
| 63 | @classmethod |
| 64 | def from_callback( |
| 65 | cls, callback, batch=False, prefetch_queue_depth=1, bytes_per_sample_hint=None |
| 66 | ): |
| 67 | _, source_desc = get_callback_from_source(callback, cycle=None) |
| 68 | return cls(source_desc, batch, prefetch_queue_depth, bytes_per_sample_hint) |
| 69 | |
| 70 | |
| 71 | def create_pool(groups, keep_alive_queue_size=1, num_workers=1, start_method="fork"): |
no test coverage detected