You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
This change should add a constructor to the Snowflake type intended for use by servers, or more accurately, producers of new Snowflake values.
These methods likely would not be able to forward to the existing Snowflake(ulong, ulong) ctor due to the need for a method body to perform multiple mathematical operations.
Why This is Needed
Currently, the Snowflake type is intended for use solely by consumers, e.g. those who are sent Snowflake values over an API or who store them in a database. This is not suitable for producers of this type, who would currently need to produce the Snowflake value themselves as a ulong, then pass that to the Snowflake(ulong, ulong) ctor.
The text was updated successfully, but these errors were encountered:
Foxtrek64
changed the title
Snowflake - Add Server Constructor
Snowflake - Add Producer Constructor
Nov 13, 2024
Description
This change should add a constructor to the Snowflake type intended for use by servers, or more accurately, producers of new Snowflake values.
API Proposal
These methods likely would not be able to forward to the existing
Snowflake(ulong, ulong)
ctor due to the need for a method body to perform multiple mathematical operations.Why This is Needed
Currently, the Snowflake type is intended for use solely by consumers, e.g. those who are sent Snowflake values over an API or who store them in a database. This is not suitable for producers of this type, who would currently need to produce the Snowflake value themselves as a ulong, then pass that to the
Snowflake(ulong, ulong)
ctor.The text was updated successfully, but these errors were encountered: