Shortcuts

Adapter

class flash.core.adapter.Adapter[source]

The Adapter is a lightweight interface that can be used to encapsulate the logic from a particular provider within a Task.

abstract classmethod from_task(task, **kwargs)[source]

Instantiate the adapter from the given Task.

This includes resolution / creation of backbones / heads and any other provider specific options.

Return type

Adapter