Bread:...:Thunk(3pm)

πŸ“¦
version 0.37 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing

✨ Bread::Board::Service::Deferred::Thunk πŸ’…

okay bestie, so this page is literally about Bread::Board::Service::Deferred::Thunk from the perl docs (that's the 3pm girlies πŸ’–), and she is such a helper. Let's get into it.


🌸 VERSION

version 0.37 β€” yes, that's the one, no cap ✨


πŸ¦‹ DESCRIPTION

So here's the tea πŸ«–: this class shows up when you're resolving dependencies that need parameters.

Picture it β€” the service can't actually make its value yet because it's missing the parameters it needs, and nobody handed any values over for those parameters. Tragic. 😭 So what's the best we can do? We hand you back a coderef that will accept the parameters, and then call "get" on the service. That's it. That's the whole vibe. ✨


πŸ’… METHODS

🌈 "inflate"

my $service_value = $deferred_thunk->inflate(%service_parameters);

This is the moment, the main character energy πŸ‘‘ β€” inflate calls "get" on the service and passes it all the %service_parameters. And listen: normal parameter validation and service lifecycle still apply, periodt. No shortcuts, no skips, it's all still running the way it's supposed to. πŸ’–


πŸŽ€ AUTHOR

Stevan Little <stevan@iinteractive.com> β€” the icon, the legend ⭐


πŸ™ˆ BUGS

Please report any bugs or feature requests on the bugtracker website:

https://github.com/stevan/BreadBoard/issues

And when you're submitting a bug or a request, pretty please include a test-file or a patch to an existing test-file that illustrates the bug or the desired feature. It's giving helpful, it's giving considerate 🫢


This software is copyright (c) 2019, 2017, 2016, 2015, 2014, 2013, 2011, 2009 by Infinity Interactive.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. πŸ“


okay that's the whole page, and yes, it was generated by perl v5.36.0 on 2022-12-12 β€” so when you see that footer at the bottom of the real thing, that's just the perl that made it, slay πŸŒˆπŸ’–

πŸ“¦ where this page comes from