add a lambda callback for resolve

Signed-off-by: xiehuc <xiehuc@gmail.com>
add mark_all

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