updated custom sample showing custom thread pools, resource
configuration and setting a call to be non-blocking