nezuo / lapis

A DataStore abstraction library for Roblox
https://nezuo.github.io/lapis/
MIT License
55 stars 10 forks source link

Add beforeClose #25

Closed nezuo closed 10 months ago

nezuo commented 10 months ago

There are a few nuances to worry about with this. The user can call document:close or document:save inside of the callback. They can error or yield in the callback.

The behavior I decided to go with is the following: