The Get.lazyPut Method

Lazy loading dependencies

Get.lazyPut enables us to lazily load the dependencies into the memory. By lazy load, we mean that even though the dependencies will be initialized instantly, they will be allocated space in memory only when Get.find is called for the first time. Unlike Get.put, it does not call Get.find internally.

So when would we want to load our dependencies lazily? One good use case is when we place our dependencies in intialBinding:

Get hands-on with 1400+ tech skills courses.