Distributive-Network / bifrost2

The Python SDK for DCP
1 stars 0 forks source link

ResultHandle design and Implementation #11

Open wiwichips opened 2 months ago

wiwichips commented 2 months ago

The ResultHandle is perhaps the most interesting class exposed publicly with dcp-client!

Read the source code to find out why! But here are some notes for now:

This adds some interesting complexity when dealing with it in Python for Bifrost 2! But I think I'm just overthinking it!

I think there just needs to be a wrapper class in Python which inherits from some non mutable List and behaves how you would expect the ResultHandle to behave. I only hesitate because this means a "sepcial case" when I just wanted to generically wrap ResultHandle like everything else