Change the name of constans
Add tests for TransportFuture
Fix the order of calling TransportFuture#done()

The done() must be called after register() to ensure that
the SelectionKey of IO selector is fixed.
Fix task loop allocation