Function: done()

done(object?): void

结束脚本执行并按平台转换参数。 Complete script execution with platform-specific parameter mapping.

说明: Notes:

  • 这是调用入口,平台原生 $done 差异在内部处理
  • This is the call entry and native $done differences are handled internally
  • Worker 不调用 $done 或退出进程,仅记录日志
  • Worker neither calls $done nor exits the process; it only logs
  • Node.js 不调用 $done,而是直接退出进程
  • Node.js does not call $done; it exits the process directly
  • 未识别平台仅记录结束日志,不会强制退出
  • Unknown runtimes only log completion and do not force an exit

Parameters

object?

DonePayload = {}

统一响应对象 / Unified response object.

Returns

void