Add class member abstraction to asyncmethod and threadpool