Requests Documentation

Extensions on LockProvider

Methods

_output(from:​)

@_spi(Private)
    func _output(from input: Input) -> Output  

Generate an output.

Parameters

input Input

Some Input.

Returns

Some Output.

unlock()

func unlock() -> Secret where Input == Void  

Unlock the output.

Returns

Some Secret.

unlock()

func unlock<T>() -> Secret where Input == T?  

Unlock the output.

Returns

Some Secret.

unlock(with:​)

func unlock<T>(with key: Key) -> Secret.Output
    where Secret: OffsetProvider, Secret.Offset == T?  

Unlock an optionally offsetted output.

Parameters

key Key

Some Key.

Returns

Some Secret.Output.

unlock()

func unlock<T>() -> Secret.Output where Input == Void, Secret: OffsetProvider, Secret.Offset == T?  

Unlock an optionally offsetted output.

Parameters

key

Some Key.

Returns

Some Secret.Output.

unlock()

func unlock<T1, T2>() -> Secret.Output where Input == T1?, Secret: OffsetProvider, Secret.Offset == T2?  

Unlock an optionally offsetted output.

Parameters

key

Some Key.

Returns

Some Secret.Output.