Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Minor change for ParallelLoop #19

Merged
merged 1 commit into from
Feb 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions rlmeta/core/loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,10 @@ def seed(self) -> Optional[int]:
return self._seed

def run(self) -> NoReturn:
self.start()
self.join()

def start(self) -> None:
processes = []
for loop in self._async_loops:
loop.init_launching()
Expand All @@ -280,9 +284,6 @@ def run(self) -> NoReturn:
process.start()
self._processes = processes

def start(self) -> None:
self.run()

def join(self) -> None:
for process in self._processes:
process.join()
Expand Down