fixed promise api doc