go.temporal.io/server/common/effect/immediate.go

13 LOC · 3 covered · 10 uncovered · 2 ranges · 69 concepts · 2 introducers · 38 tests

File neighbourhood

The centred file is linked to every concept that introduces one of its ranges, every test that runs code from the file, and the gray connector concepts standing between those tests and the file's own introducer concepts. Undirected links join concepts to every file where they introduce source and concepts to the tests they introduce; arrows show specialization between the displayed concepts and bridge only concepts omitted from this view. Concept colors match the source ranges below; connector concepts have no source color and are shown in gray.

Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the file

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the related-file, concept, and source links on this page.

Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the fileapi.go ×2 · 8 introduced LOCapi.go ×2workflow_task_state_machine.go ×1 · 4 introduced LOCworkflow_task_state_mach…Two_page_completion_merges_commands · 0 introduced LOCTwo_page_completion_merg…api.go ×2 · 3 introduced LOCapi.go ×2Accept_Complete · 0 introduced LOCAccept_Completeapi.go ×1 · 1 introduced LOCapi.go ×1Write_failed_on_normal_task_queue · 0 introduced LOCWrite_failed_on_normal_t…api.go ×4 · 29 introduced LOCapi.go ×4test_vars.go ×1 · 7 introduced LOCtest_vars.go ×1update.go ×2 · 4 introduced LOCupdate.go ×2update.go ×1 · 5 introduced LOCupdate.go ×1workflow_task_state_machine.go ×1 · 5 introduced LOCworkflow_task_state_mach…mutable_state_impl.go ×20 · 150 introduced LOCmutable_state_impl.go ×2…Discard_speculative_WFT_with_events · 0 introduced LOCDiscard_speculative_WFT_…test_vars.go ×1 · 3 introduced LOCtest_vars.go ×1workflow_task_state_machine.go ×2 · 26 introduced LOCworkflow_task_state_mach…history_require.go ×1 · 1 introduced LOChistory_require.go ×1Reject · 0 introduced LOCRejectindexedtakelist.go ×1 · 30 introduced LOCindexedtakelist.go ×1workflow_task_state_machine.go ×1 · 1 introduced LOCworkflow_task_state_mach…registry.go ×3 · 18 introduced LOCregistry.go ×3workflow_task_state_machine.go ×2 · 6 introduced LOCworkflow_task_state_mach…workflow_task_state_machine.go ×1 · 1 introduced LOCworkflow_task_state_mach…workflow_task_state_machine.go ×3 · 5 introduced LOCworkflow_task_state_mach…indexedtakelist.go ×1 · 13 introduced LOCindexedtakelist.go ×1context.go ×2 · 22 introduced LOCcontext.go ×2mutable_state_mock.go ×2 · 11 introduced LOCmutable_state_mock.go ×2workflow_task_completed_handler.go ×1 · 1 introduced LOCworkflow_task_completed_…completing_1st_update_still_denies_new_update_to_be_created · 0 introduced LOCcompleting_1st_update_st…create_update_if_not_found · 0 introduced LOCcreate_update_if_not_fou…accepting_1st_update_still_denies_new_update_to_be_created · 0 introduced LOCaccepting_1st_update_sti…rejecting_1st_update_now_allows_new_update_to_be_created · 0 introduced LOCrejecting_1st_update_now…add_acceptance_message_as_new_update_with_stateAdmitted · 0 introduced LOCadd_acceptance_message_a…registry.go ×1 · 2 introduced LOCregistry.go ×1registry_created_from_store_with_update_in_stateAdmitted_contains_admitted_update · 0 introduced LOCregistry_created_from_st…disabling_limit_allows_update_#4_to_be_admitted · 0 introduced LOCdisabling_limit_allows_u…increasing_limit_allows_update_#3_to_be_admitted · 0 introduced LOCincreasing_limit_allows_…registry.go ×1 · 20 introduced LOCregistry.go ×1admitting_update_#1_is_allowed · 0 introduced LOCadmitting_update_#1_is_a…admitting_1st_update_still_denies_new_update_to_be_created · 0 introduced LOCadmitting_1st_update_sti…deny_new_update_since_it_is_exceeding_the_limit · 0 introduced LOCdeny_new_update_since_it…registry_created_from_store_with_update_in_stateAccepted_contains_accepted_update · 0 introduced LOCregistry_created_from_st…increasing_limit_allows_new_updated_to_be_created · 0 introduced LOCincreasing_limit_allows_…TestAbort · 0 introduced LOCTestAbortregistry.go ×1 · 2 introduced LOCregistry.go ×1registry.go ×1 · 1 introduced LOCregistry.go ×1update.go ×3 · 19 introduced LOCupdate.go ×3TestClear · 0 introduced LOCTestClearregistry.go ×1 · 5 introduced LOCregistry.go ×1registry.go ×1 · 1 introduced LOCregistry.go ×1registry.go ×1 · 3 introduced LOCregistry.go ×1registry.go ×1 · 2 introduced LOCregistry.go ×1registry.go ×2 · 12 introduced LOCregistry.go ×2registry.go ×2 · 4 introduced LOCregistry.go ×2registry_with_updates_[#1,_#2]_in_stateCreated_rejects_nothing · 0 introduced LOCregistry_with_updates_[#…registry.go ×1 · 2 introduced LOCregistry.go ×1update.pb.go ×1 · 16 introduced LOCupdate.pb.go ×1registry.go ×1 · 2 introduced LOCregistry.go ×1registry.go ×2 · 2 introduced LOCregistry.go ×2registry_with_created_update · 0 introduced LOCregistry_with_created_up…registry.go ×1 · 1 introduced LOCregistry.go ×1registry.go ×1 · 1 introduced LOCregistry.go ×1update.go ×1 · 3 introduced LOCupdate.go ×1registry.go ×3 · 3 introduced LOCregistry.go ×3empty_registry_has_no_messages_to_send · 0 introduced LOCempty_registry_has_no_me…empty_registry_has_no_updates_to_reject · 0 introduced LOCempty_registry_has_no_up…empty_registry · 0 introduced LOCempty_registryimmediate.go ×1 · 2 introduced LOCimmediate.go ×1immediate.go ×1 · 1 introduced LOCimmediate.go ×1TestImmediate · introduced test · go.temporal.io/server/common/effect/TestImmediateTestImmediatedeliver_message_success · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestCommandProtocolMessage/deliver_message_successdeliver_message_successAccept_Complete · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestUpdateWorkflow/Accept_CompleteAccept_CompleteDiscard_speculative_WFT_with_events · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestUpdateWorkflow/Discard_speculative_WFT_with_eventsDiscard_speculative_WFT_…Do_not_discard_speculative_WFT_with_more_than_10_events · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestUpdateWorkflow/Do_not_discard_speculative_WFT_with_more_than_10_eventsDo_not_discard_speculati…GetHistory_failed · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestUpdateWorkflow/GetHistory_failedGetHistory_failedHeartbeat_(empty_completion) · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestUpdateWorkflow/Heartbeat_(empty_completion)Heartbeat_(empty_complet…Reject · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestUpdateWorkflow/RejectRejectWrite_failed_on_normal_task_queue · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestUpdateWorkflow/Write_failed_on_normal_task_queueWrite_failed_on_normal_t…Write_failed_on_sticky_task_queue · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestUpdateWorkflow/Write_failed_on_sticky_task_queueWrite_failed_on_sticky_t…Duplicate_intermediate_page_is_idempotent · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestWorkflowTaskCompletionPagination/Duplicate_intermediate_page_is_idempotentDuplicate_intermediate_p…Single_page_completion_unchanged_when_pagination_enabled · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestWorkflowTaskCompletionPagination/Single_page_completion_unchanged_when_pagination_enabledSingle_page_completion_u…Two_page_completion_merges_commands · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestWorkflowTaskCompletionPagination/Two_page_completion_merges_commandsTwo_page_completion_merg…TestAbort · introduced test · go.temporal.io/server/service/history/workflow/update/TestAbortTestAbortTestClear · introduced test · go.temporal.io/server/service/history/workflow/update/TestClearTestClearcreate_update_if_not_found · introduced test · go.temporal.io/server/service/history/workflow/update/TestFindOrCreate/create_update_if_not_foundcreate_update_if_not_fou…admitting_1st_update_still_denies_new_update_to_be_created · introduced test · go.temporal.io/server/service/history/workflow/update/TestFindOrCreate/enforce_in-flight_update_limit/admitting_1st_update_still_denies_new_update_to_be_createdadmitting_1st_update_sti…deny_new_update_since_it_is_exceeding_the_limit · introduced test · go.temporal.io/server/service/history/workflow/update/TestFindOrCreate/enforce_in-flight_update_limit/deny_new_update_since_it_is_exceeding_the_limitdeny_new_update_since_it…increasing_limit_allows_new_updated_to_be_created · introduced test · go.temporal.io/server/service/history/workflow/update/TestFindOrCreate/enforce_in-flight_update_limit/increasing_limit_allows_new_updated_to_be_createdincreasing_limit_allows_…admitting_update_#1_is_allowed · introduced test · go.temporal.io/server/service/history/workflow/update/TestFindOrCreate/enforce_inflight_update_size_limit/admitting_update_#1_is_allowedadmitting_update_#1_is_a…disabling_limit_allows_update_#4_to_be_admitted · introduced test · go.temporal.io/server/service/history/workflow/update/TestFindOrCreate/enforce_inflight_update_size_limit/disabling_limit_allows_update_#4_to_be_admitteddisabling_limit_allows_u…increasing_limit_allows_update_#3_to_be_admitted · introduced test · go.temporal.io/server/service/history/workflow/update/TestFindOrCreate/enforce_inflight_update_size_limit/increasing_limit_allows_update_#3_to_be_admittedincreasing_limit_allows_…accepting_1st_update_still_denies_new_update_to_be_created · introduced test · go.temporal.io/server/service/history/workflow/update/TestFindOrCreate/enforce_total_update_limit/accepting_1st_update_still_denies_new_update_to_be_createdaccepting_1st_update_sti…completing_1st_update_still_denies_new_update_to_be_created · introduced test · go.temporal.io/server/service/history/workflow/update/TestFindOrCreate/enforce_total_update_limit/completing_1st_update_still_denies_new_update_to_be_createdcompleting_1st_update_st…deny_new_update_since_it_is_exceeding_the_limit · introduced test · go.temporal.io/server/service/history/workflow/update/TestFindOrCreate/enforce_total_update_limit/deny_new_update_since_it_is_exceeding_the_limitdeny_new_update_since_it…increasing_limit_allows_new_updated_to_be_created · introduced test · go.temporal.io/server/service/history/workflow/update/TestFindOrCreate/enforce_total_update_limit/increasing_limit_allows_new_updated_to_be_createdincreasing_limit_allows_…rejecting_1st_update_now_allows_new_update_to_be_created · introduced test · go.temporal.io/server/service/history/workflow/update/TestFindOrCreate/enforce_total_update_limit/rejecting_1st_update_now_allows_new_update_to_be_createdrejecting_1st_update_now…empty_registry · introduced test · go.temporal.io/server/service/history/workflow/update/TestHasOutgoingMessages/empty_registryempty_registryregistry_with_created_update · introduced test · go.temporal.io/server/service/history/workflow/update/TestHasOutgoingMessages/registry_with_created_updateregistry_with_created_up…registry_created_from_store_with_update_in_stateAccepted_but_non-running_workflow_contains_aborted_update · introduced test · go.temporal.io/server/service/history/workflow/update/TestNewRegistry/registry_created_from_store_with_update_in_stateAccepted_but_non-running_workflow_contains_aborted_updateregistry_created_from_st…registry_created_from_store_with_update_in_stateAccepted_contains_accepted_update · introduced test · go.temporal.io/server/service/history/workflow/update/TestNewRegistry/registry_created_from_store_with_update_in_stateAccepted_contains_accepted_updateregistry_created_from_st…registry_created_from_store_with_update_in_stateAdmitted_contains_admitted_update · introduced test · go.temporal.io/server/service/history/workflow/update/TestNewRegistry/registry_created_from_store_with_update_in_stateAdmitted_contains_admitted_updateregistry_created_from_st…empty_registry_has_no_updates_to_reject · introduced test · go.temporal.io/server/service/history/workflow/update/TestRejectUnprocessed/empty_registry_has_no_updates_to_rejectempty_registry_has_no_up…registry_with_updates_[#1,_#2]_in_stateCreated_rejects_nothing · introduced test · go.temporal.io/server/service/history/workflow/update/TestRejectUnprocessed/registry_with_updates_[#1,_#2]_in_stateCreated_rejects_nothingregistry_with_updates_[#…empty_registry_has_no_messages_to_send · introduced test · go.temporal.io/server/service/history/workflow/update/TestSendMessages/empty_registry_has_no_messages_to_sendempty_registry_has_no_me…registry_with_2_created_updates_has_no_messages_to_send · introduced test · go.temporal.io/server/service/history/workflow/update/TestSendMessages/registry_with_2_created_updates_has_no_messages_to_sendregistry_with_2_created_…add_acceptance_message_as_new_update_with_stateAdmitted · introduced test · go.temporal.io/server/service/history/workflow/update/TestTryResurrect/add_acceptance_message_as_new_update_with_stateAdmittedadd_acceptance_message_a…add_rejection_message_as_new_update_with_stateAdmitted · introduced test · go.temporal.io/server/service/history/workflow/update/TestTryResurrect/add_rejection_message_as_new_update_with_stateAdmittedadd_rejection_message_as…Focused file · go.temporal.io/server/common/effect/immediate.go · 13 LOCeffect/immediate.go

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the related-file, concept, and source links on this page while the interactive map is unavailable.

1 package effect
2
3 import "context"
4
5 type immediate struct{ context.Context }
6
7 // Immediate returns an effects.Controller that executes effects immediately upon
8 // insertion. Useful in contexts where you don't actually want to delay effect
9 // application and in tests.
10 > func Immediate(ctx context.Context) Controller { return immediate{ctx} } immediate.go ×1
11
12 > func (i immediate) OnAfterCommit(effect func(context.Context)) { effect(i) } immediate.go ×1
13 > func (i immediate) OnAfterRollback(func(context.Context)) {}