fetcher
Bases: Decorator
fetcher is decorator that converts a decorated method into a remote object call.
Lets consider you have function with name and signature my_awersome_function(a: int, b: int, c: str): ...
registered on one of nodes.
Yo need to create fetcher with the same name and the same signature to call function on remote:
Example
from daffi.decorators import fetcher, body_unknown
@fetcher def my_awersome_function(a: int, b: int, c: str): # or use pass. Internal logic will be skipped in any case. only name and signature is important body_unknown(a, b, c)
Then we can call
my_awersome_function
on remote¶!!! Execution modifier is binded to fetcher. No need to use
& FG
after execution.¶result = my_awersome_function(1, 2, "abc")