Workspace.inhibit

Inhibits one or more particular actions in the session.

When the resulting #PanelInhibitor releases it's last reference the inhibitor will be dismissed. Alternatively, you may force the release of the inhibit using [panel.inhibitor.Inhibitor.uninhibit].

Parameters

flagsthe inhibit flags
reasonthe reason for the inhibit

Returns

a #PanelInhibitor or null