Ice.initialize

Ice.initialize(args: list[str] | None = None, eventLoop: AbstractEventLoop | None = None, initData: InitializationData | None = None) Communicator

Creates a new communicator.

This function is provided for backwards compatibility. New code should call the Communicator constructor directly.

Parameters:
  • args (list[str] | None, optional) – The command-line arguments.

  • eventLoop (asyncio.AbstractEventLoop | None, optional) – An asyncio event loop used to run coroutines and wrap futures.

  • initData (InitializationData | None, optional) – Options for the new communicator. This argument is mutually exclusive with both the args and eventLoop argument.

Returns:

The new communicator.

Return type:

Communicator