Sha256: 1bd50ed1c1af14c0d1646349cd910a6cec084b26d1d60ea3e43bb0c5ae94c3d7
Contents?: true
Size: 368 Bytes
Versions: 10
Compression:
Stored size: 368 Bytes
Contents
class Puppeteer::TaskManager def initialize @tasks = Set.new end def add(task) @tasks << task end def delete(task) @tasks.delete(task) end def terminate_all(error) @tasks.each do |task| task.terminate(error) end @tasks.clear end def async_rerun_all Concurrent::Promises.zip(*@tasks.map(&:async_rerun)) end end
Version data entries
10 entries across 10 versions & 1 rubygems