strvcom / ios-chat-component

Chat modular library
MIT License
1 stars 1 forks source link

[feat] add return value when task finishing #29

Closed cejanen closed 4 years ago

cejanen commented 4 years ago

I added return value from task completion to check if task finished. I dont like much code version bc now all call which doesnt care about finished task (eg success) needs to get value, discartableresult cant be used for closures. Any suggestions rly are welcomed

cejanen commented 4 years ago

@schwarja I tried do another run task method but it generated a lot of boilerplate. So at the end and few attempts I created default handler at chat core.

cejanen commented 4 years ago

@schwarja updated + prepared to merge to dev