Engine.with_nonglobal_loaders


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "1.14" ) ]
public Engine.with_nonglobal_loaders ()

Return a new instance of Engine which will use non-global plugin loaders instead of the default global ones.

This allows multiple threads to each have a Engine and be used without internal locking.

Note: due to CPython's GIL the python and python3 plugin loaders are always global.

Returns:

a new instance of Engine that uses non-global loaders.