now the main actor can call wait function

Signed-off-by: yayanyang <yayanyang@gmail.com>