-
-
Notifications
You must be signed in to change notification settings - Fork 52
Add process names, refocus scope, rework API #71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
d1a4af2
Start named process API
lpil 136c250
API renovation
lpil bfa94e2
Changelog, remove node.to_atom
lpil b871e07
Name testing
lpil f2a1263
Update versions
lpil 6f6f449
Node send rename
lpil 05eb14b
New start functions
lpil 54d4aea
Document, remove try_call functions
lpil 542d3d3
Document and test names and calling
lpil b894de3
Name documentation
lpil 8ba6625
Name tests
lpil 57c3eae
some doc changes
bcpeinhardt 6fa5a23
Apply suggestions from code review
lpil 8b48031
Correct changelog
lpil 83b9d17
Document start type
lpil e6206be
Update README
lpil 607aecd
Remove selecting_record* functions
lpil a12986b
Remove node.untyped_send
lpil ca05f87
Improve monitor APIs
lpil 8a620b6
Abnormal uses Dynamic instead of String, Use ExitReason more
sbergen 4ffcf78
Relax abnormal exit
lpil 5ea2e9b
Names have a programmer supplied prefix
lpil c54cb6e
Panic when sending fails
lpil d8a8761
Note replacements
lpil 7e96509
Improve call, document
lpil f113865
Typos
lpil 075cf5a
Remove unused
lpil 963cd12
Rename selector functions
lpil bc5d237
Update CI
lpil fb37cf8
select_other
lpil 29997fe
v1.0.0-rc1
lpil abd3703
Use proc_lib
lpil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| //// An Erlang application is a collection of code that can be loaded into the | ||
| //// Erlang virtual machine and even started and stopped if they define a | ||
| //// start module and supervision tree. Each Gleam package is an Erlang | ||
| //// application. | ||
|
|
||
| import gleam/erlang/node.{type Node} | ||
|
|
||
| /// The Erlang/OTP application `start` callback takes a start-type as an | ||
| /// argument, indicating the context in which the application is being started. | ||
| pub type StartType { | ||
| /// A normal application start. | ||
| Normal | ||
| /// The application is distributed and started at the current node because of | ||
| /// a takeover from Node, either because Erlang's `application:takeover/2` | ||
| /// function has been called, or because the current node has higher priority | ||
| /// than the previous node. | ||
| Takeover(previous: Node) | ||
| /// The application is distributed and started at the current node because of | ||
| /// a failover from the previous node. | ||
| Failover(previous: Node) | ||
| } | ||
|
|
||
| /// Returns the path of an application's `priv` directory, where extra non-Gleam | ||
| /// or Erlang files are typically kept. Each Gleam package is an Erlang | ||
| /// application. | ||
| /// | ||
| /// Returns an error if no application was found with the given name. | ||
| /// | ||
| /// # Example | ||
| /// | ||
| /// ```gleam | ||
| /// application.priv_directory("my_app") | ||
| /// // -> Ok("/some/location/my_app/priv") | ||
| /// ``` | ||
| /// | ||
| @external(erlang, "gleam_erlang_ffi", "priv_directory") | ||
| pub fn priv_directory(name: String) -> Result(String, Nil) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.