/**
 * Copyright (c) 2018-present, tarant
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */ type AnswerFunction = ( r : any ) => void ; export default class ActorMessage { public static of ( method , args , resolve , reject ) { return new ActorMessage ( method , args , resolve , reject ) ; } public readonly methodName : string ; public readonly arguments : any [ ] ; public readonly resolve : AnswerFunction ; public readonly reject : AnswerFunction ; private constructor ( methodName , args , resolve , reject ) { this . methodName = methodName ; this . arguments = args ; this . resolve = resolve ; this . reject = reject ; } }