libp2p
    Preparing search index...
    • A function that can be used to start and objects passed to it. This checks that an object is startable before invoking its lifecycle methods so it is safe to pass non-Startables in.

      Parameters

      • ...objs: any[]

      Returns Promise<void>

      import { start } from '@libp2p/interface'
      import type { Startable } from '@libp2p/interface'

      const startable: Startable = {
      start: () => {},
      stop: () => {}
      }

      const notStartable = 5

      await start(
      startable,
      notStartable
      )