pymor.parallel.manager

Module Contents

class pymor.parallel.manager.RemoteObjectManager[source]

Bases: pymor.core.base.BasicObject

A simple context manager to keep track of RemoteObjects.

When leaving this context, all RemoteObjects that have been managed by this object will be removed.

Methods

manage

Add a RemoteObject to the list of managed objects.

remove_objects

Call remove for all managed objects.

manage(remote_object)[source]

Add a RemoteObject to the list of managed objects.

Parameters

remote_object

The object to add to the list.

Returns

remote_object

remove_objects()[source]

Call remove for all managed objects.