i have manager class spawns task complete long running operation. able invoke method on manager class notify listeners via event of status, errors etc.
when using non-task approach easy.
how invoke method, or raise event on manager class within task?
thanks in advance.
i define interface need communicate manager class , pass task via method parameter.
for error notifications throwing exception suffice long exception observed on task via await, task.wait(), task.result or task.exception
if notification progress there [iprogress<t>][1] interface can use.
but custom notification manager class i'd add appropriate interface , implement in manager class.
Comments
Post a Comment