ofTheadChannel callback

Hello

Im trying to implement a thread uploader to amazon S3 server.

Im able to upload and without threads i can get a fire an event on success or on failure, the problem is that the upload part blocks my main thread. So thats why i want to make a threaded version.

I have a sample implemented with a threadedChannel so in the main thread i feed the uploader.

What is the best approach to fire an event when the upload is done or when fails? Something to fire an event with the data of the file that has been uploaded ??