Table of Contents

Class ObserveOnGIL

Namespace
Bonsai.Scripting.Python
Assembly
Bonsai.Scripting.Python.dll

Represents an operator that wraps the source sequence to ensure all notifications are emitted while holding the Python global interpreter lock.

public class ObserveOnGIL : Combinator
Inheritance
ObserveOnGIL
Inherited Members

Methods

Process<TSource>(IObservable<TSource>)

Wraps an observable sequence to ensure all notifications are emitted while holding the Python global interpreter lock.

public override IObservable<TSource> Process<TSource>(IObservable<TSource> source)

Parameters

source IObservable<TSource>

The source sequence to wrap.

Returns

IObservable<TSource>

An observable sequence that is identical to the source sequence but where there is an additional side effect of ensuring that all notifications are emitted inside the Python global interpreter lock.

Type Parameters

TSource

The type of the elements in the source sequence.